Add EventType enum for standardized event handling
This commit is contained in:
parent
734adf2f7d
commit
374e3907c4
1 changed files with 16 additions and 0 deletions
16
src/TgBotLib/Enums/EventType.php
Normal file
16
src/TgBotLib/Enums/EventType.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Enums;
|
||||
|
||||
use TgBotLib\Abstracts\UpdateEvent;
|
||||
use TgBotLib\Events\ChatBoostEvent;
|
||||
use TgBotLib\Events\ChatJoinRequestEvent;
|
||||
use TgBotLib\Events\RemovedChatBoostEvent;
|
||||
|
||||
enum EventType : string
|
||||
{
|
||||
case UPDATE_EVENT = UpdateEvent::class;
|
||||
case REMOVED_CHAT_BOOST_EVENT = RemovedChatBoostEvent::class;
|
||||
case CHAT_BOOST_EVENT = ChatBoostEvent::class;
|
||||
case CHAT_JOIN_REQUEST_EVENT = ChatJoinRequestEvent::class;
|
||||
}
|
Loading…
Add table
Reference in a new issue