Add RemovedChatBoostEvent class
This commit is contained in:
parent
da553c3bc9
commit
f83b5ac40f
1 changed files with 26 additions and 0 deletions
26
src/TgBotLib/Events/RemovedChatBoostEvent.php
Normal file
26
src/TgBotLib/Events/RemovedChatBoostEvent.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Events;
|
||||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Objects\ChatBoostRemoved;
|
||||
|
||||
abstract class RemovedChatBoostEvent extends UpdateEvent
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function getEventType(): EventType
|
||||
{
|
||||
return EventType::REMOVED_CHAT_BOOST_EVENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ChatBoostRemoved The object representing the removed chat boost.
|
||||
*/
|
||||
protected function getChatBoostRemoved(): ChatBoostRemoved
|
||||
{
|
||||
return $this->update->getRemovedChatBoost();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue