mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-15 05:59:43 +03:00
Filter fix
This commit is contained in:
@@ -37,4 +37,4 @@ class NewSoloPostFilter(Filter):
|
|||||||
|
|
||||||
class ChangePosts(Filter):
|
class ChangePosts(Filter):
|
||||||
async def __call__(self, message: types.Message) -> bool:
|
async def __call__(self, message: types.Message) -> bool:
|
||||||
return message.text.startswith("/change") and message.chat.type == 'private'
|
return message.text and message.text.startswith("/change") and message.chat.type == 'private'
|
||||||
Reference in New Issue
Block a user