From 87f9321280f754778b08d98a9f4da897341130fa Mon Sep 17 00:00:00 2001 From: netkas Date: Mon, 4 Nov 2024 15:19:29 -0500 Subject: [PATCH] Add abstract handle method in UpdateEvent --- src/TgBotLib/Abstracts/UpdateEvent.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/TgBotLib/Abstracts/UpdateEvent.php b/src/TgBotLib/Abstracts/UpdateEvent.php index 3b938ae..69df341 100644 --- a/src/TgBotLib/Abstracts/UpdateEvent.php +++ b/src/TgBotLib/Abstracts/UpdateEvent.php @@ -30,5 +30,11 @@ return EventType::UPDATE_EVENT; } + /** + * Abstract method to handle the bot instance. + * + * @param Bot $bot The bot instance to be handled. + * @return void + */ public abstract function handle(Bot $bot): void; } \ No newline at end of file