2024-11-01 15:46:32 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
|
|
|
|
use TgBotLib\Abstracts\UpdateEvent;
|
2024-11-01 18:11:11 -04:00
|
|
|
use TgBotLib\Enums\UpdateEventType;
|
2024-11-01 15:46:32 -04:00
|
|
|
use TgBotLib\Objects\ChatBoostUpdated;
|
|
|
|
|
|
|
|
abstract class ChatBoostEvent extends UpdateEvent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2024-11-01 18:11:11 -04:00
|
|
|
public static function getEventType(): UpdateEventType
|
2024-11-01 15:46:32 -04:00
|
|
|
{
|
2024-11-01 18:11:11 -04:00
|
|
|
return UpdateEventType::CHAT_BOOST_EVENT;
|
2024-11-01 15:46:32 -04:00
|
|
|
}
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|