From e0ef6a3bf22302e14ee91edbca8315eafe261643 Mon Sep 17 00:00:00 2001 From: harold Date: Mon, 5 May 2025 16:25:43 +0500 Subject: [PATCH] add fix --- telegram-application/src/core/tg_service/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram-application/src/core/tg_service/utils.py b/telegram-application/src/core/tg_service/utils.py index fcb198c..2211722 100644 --- a/telegram-application/src/core/tg_service/utils.py +++ b/telegram-application/src/core/tg_service/utils.py @@ -11,7 +11,7 @@ def check_message_condition( message.chat.type not in [ChatType.PRIVATE, ChatType.BOT], bool(message.from_user), bool(message.text), - bool('bot' not in message.from_user.username.lower() if message.from_user.username), + bool('bot' not in message.from_user.username.lower() if message.from_user.username else True), ) return all(conditions)