tgbotlib/src/TgBotLib/Events/RemovedChatBoostEvent.php

27 lines
733 B
PHP
Raw Normal View History

2024-11-01 15:47:09 -04:00
<?php
namespace TgBotLib\Events;
use TgBotLib\Enums\EventType;
2024-11-01 15:47:09 -04:00
use TgBotLib\Objects\ChatBoostRemoved;
abstract class RemovedChatBoostEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): EventType
2024-11-01 15:47:09 -04: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();
}
}