This commit is contained in:
harold 2025-05-05 16:25:43 +05:00
parent da78252798
commit e0ef6a3bf2

View File

@ -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)