add fix
This commit is contained in:
parent
bd621c5653
commit
da78252798
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user