Add ChatBoostEvent class
This commit is contained in:
parent
40fd31cc79
commit
6787654243
1 changed files with 23 additions and 0 deletions
23
src/TgBotLib/Events/ChatBoostEvent.php
Normal file
23
src/TgBotLib/Events/ChatBoostEvent.php
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?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;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getChatBoost(): ChatBoostUpdated
|
||||||
|
{
|
||||||
|
return $this->update->getChatBoost();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue