Add ChatJoinRequestEvent class
This commit is contained in:
parent
27d1dce80f
commit
734adf2f7d
1 changed files with 21 additions and 0 deletions
21
src/TgBotLib/Events/ChatJoinRequestEvent.php
Normal file
21
src/TgBotLib/Events/ChatJoinRequestEvent.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Events;
|
||||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Bot;
|
||||
use TgBotLib\Enums\EventType;
|
||||
use TgBotLib\Objects\ChatJoinRequest;
|
||||
|
||||
abstract class ChatJoinRequestEvent extends UpdateEvent
|
||||
{
|
||||
public static function getEventType(): EventType
|
||||
{
|
||||
return EventType::CHAT_JOIN_REQUEST_EVENT;
|
||||
}
|
||||
|
||||
protected function getChatJoinRequest(): ChatJoinRequest
|
||||
{
|
||||
return $this->update->getChatJoinRequest();
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue