27 lines
No EOL
709 B
PHP
27 lines
No EOL
709 B
PHP
<?php
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
use TgBotLib\Enums\EventType;
|
|
use TgBotLib\Objects\ChatBoostUpdated;
|
|
|
|
abstract class ChatBoostEvent extends UpdateEvent
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getEventType(): EventType
|
|
{
|
|
return EventType::CHAT_BOOST_EVENT;
|
|
}
|
|
|
|
/**
|
|
* A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.
|
|
*
|
|
* @return ChatBoostUpdated The updated chat boost information.
|
|
*/
|
|
protected function getChatBoost(): ChatBoostUpdated
|
|
{
|
|
return $this->update->getChatBoost();
|
|
}
|
|
} |