tgbotlib/src/TgBotLib/Events/RemovedChatBoostEvent.php

28 lines
737 B
PHP
Raw Normal View History

2024-11-01 15:47:09 -04:00
<?php
namespace TgBotLib\Events;
use TgBotLib\Abstracts\UpdateEvent;
use TgBotLib\Enums\UpdateEventType;
2024-11-01 15:47:09 -04:00
use TgBotLib\Objects\ChatBoostRemoved;
abstract class RemovedChatBoostEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): UpdateEventType
2024-11-01 15:47:09 -04:00
{
return UpdateEventType::REMOVED_CHAT_BOOST_EVENT;
2024-11-01 15:47:09 -04:00
}
/**
2024-11-01 18:05:02 -04:00
* Retrieves the removed chat boost from the update.
*
* @return ChatBoostRemoved The chat boost that was removed.
2024-11-01 15:47:09 -04:00
*/
protected function getChatBoostRemoved(): ChatBoostRemoved
{
return $this->update->getRemovedChatBoost();
}
}