diff --git a/telegram-application/src/core/tg_service/utils.py b/telegram-application/src/core/tg_service/utils.py index 48971fb..fcb198c 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()), + bool('bot' not in message.from_user.username.lower() if message.from_user.username), ) return all(conditions)