From ce5f620176f9372eb4e6838797864581aa2af47c Mon Sep 17 00:00:00 2001 From: "Hitalo M." <40531911+HitaloM@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:57:43 -0300 Subject: [PATCH] --- src/korone/handlers/callback_query_handler.py | 2 +- src/korone/handlers/message_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/korone/handlers/callback_query_handler.py b/src/korone/handlers/callback_query_handler.py index d0be06994..ea32050fa 100644 --- a/src/korone/handlers/callback_query_handler.py +++ b/src/korone/handlers/callback_query_handler.py @@ -17,6 +17,6 @@ class KoroneCallbackQueryHandler(CallbackQueryHandler, BaseHandler): async def check(self, client: Client, callback: CallbackQuery) -> None: if callback.message.chat is None: - return + return None return await self._check_and_handle(client, callback) diff --git a/src/korone/handlers/message_handler.py b/src/korone/handlers/message_handler.py index 4ed2d21a0..d2d8a2255 100644 --- a/src/korone/handlers/message_handler.py +++ b/src/korone/handlers/message_handler.py @@ -17,6 +17,6 @@ class KoroneMessageHandler(MessageHandler, BaseHandler): async def check(self, client: Client, message: Message) -> None: if message.chat is None: - return + return None return await self._check_and_handle(client, message)