tgbotlib/src/TgBotLib/Events/ChatBoostEvent.php

23 lines
525 B
PHP
Raw Normal View History

2024-11-01 15:46:32 -04:00
<?php
namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\EventType;
use TgBotLib\Objects\ChatBoostUpdated;
abstract class ChatBoostEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): EventType
{
return EventType::CHAT_BOOST_EVENT;
}
protected function getChatBoost(): ChatBoostUpdated
{
return $this->update->getChatBoost();
}
}