Add RemovedChatBoostEvent class

This commit is contained in:
netkas 2024-11-01 15:47:09 -04:00
parent da553c3bc9
commit f83b5ac40f

View file

@ -0,0 +1,26 @@
<?php
namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatBoostRemoved;
abstract class RemovedChatBoostEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): EventType
{
return EventType::REMOVED_CHAT_BOOST_EVENT;
}
/**
* @return ChatBoostRemoved The object representing the removed chat boost.
*/
protected function getChatBoostRemoved(): ChatBoostRemoved
{
return $this->update->getRemovedChatBoost();
}
}