Add EventType enum for standardized event handling

This commit is contained in:
netkas 2024-11-01 15:46:55 -04:00
parent 734adf2f7d
commit 374e3907c4

View 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;
}