2024-11-01 15:47:09 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
|
2024-11-03 18:25:42 -05:00
|
|
|
use TgBotLib\Enums\EventType;
|
2024-11-01 15:47:09 -04:00
|
|
|
use TgBotLib\Objects\ChatBoostRemoved;
|
|
|
|
|
|
|
|
abstract class RemovedChatBoostEvent extends UpdateEvent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2024-11-03 18:25:42 -05:00
|
|
|
public static function getEventType(): EventType
|
2024-11-01 15:47:09 -04:00
|
|
|
{
|
2024-11-03 18:25:42 -05:00
|
|
|
return EventType::REMOVED_CHAT_BOOST_EVENT;
|
2024-11-01 15:47:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2024-11-03 17:28:51 -05:00
|
|
|
* A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.
|
2024-11-01 18:05:02 -04:00
|
|
|
*
|
|
|
|
* @return ChatBoostRemoved The chat boost that was removed.
|
2024-11-01 15:47:09 -04:00
|
|
|
*/
|
|
|
|
protected function getChatBoostRemoved(): ChatBoostRemoved
|
|
|
|
{
|
|
|
|
return $this->update->getRemovedChatBoost();
|
|
|
|
}
|
|
|
|
}
|