tgbotlib/src/TgBotLib/Events/ChatBoostEvent.php

26 lines
621 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;
}
2024-11-01 18:05:02 -04:00
/**
* @return ChatBoostUpdated The updated chat boost information.
*/
2024-11-01 15:46:32 -04:00
protected function getChatBoost(): ChatBoostUpdated
{
return $this->update->getChatBoost();
}
}