tgbotlib/src/TgBotLib/Events/ChatBoostEvent.php

26 lines
639 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\UpdateEventType;
2024-11-01 15:46:32 -04:00
use TgBotLib\Objects\ChatBoostUpdated;
abstract class ChatBoostEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): UpdateEventType
2024-11-01 15:46:32 -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();
}
}