This commit is contained in:
harold 2025-05-05 16:23:38 +05:00
parent bd621c5653
commit da78252798

View File

@ -11,7 +11,7 @@ def check_message_condition(
message.chat.type not in [ChatType.PRIVATE, ChatType.BOT], message.chat.type not in [ChatType.PRIVATE, ChatType.BOT],
bool(message.from_user), bool(message.from_user),
bool(message.text), 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) return all(conditions)