From 6b9ecaa153960726ce099967b9eae7693ee93aaa Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 4 Nov 2024 01:16:47 -0500 Subject: [PATCH] Add CommandEvent to EventType enum --- src/TgBotLib/Enums/EventType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TgBotLib/Enums/EventType.php b/src/TgBotLib/Enums/EventType.php index f45d8ff..b07ac97 100644 --- a/src/TgBotLib/Enums/EventType.php +++ b/src/TgBotLib/Enums/EventType.php @@ -11,6 +11,7 @@ use TgBotLib\Events\ChatJoinRequestEvent; use TgBotLib\Events\ChatMemberUpdatedEvent; use TgBotLib\Events\ChosenInlineResultEvent; + use TgBotLib\Events\CommandEvent; use TgBotLib\Events\DeletedBusinessMessagesEvent; use TgBotLib\Events\EditedBusinessMessageEvent; use TgBotLib\Events\EditedChannelPostEvent; @@ -54,6 +55,7 @@ case CHANNEL_POST = ChannelPostEvent::class; case EDITED_MESSAGE = EditedMessageEvent::class; case MESSAGE = MessageEvent::class; + case COMMAND = CommandEvent::class; /** * Determines the type of event based on the provided Update object.