Filter fix

This commit is contained in:
2023-11-05 01:48:08 +03:00
parent e9fb21b3d1
commit 2f13f1b884

View File

@@ -37,4 +37,4 @@ class NewSoloPostFilter(Filter):
class ChangePosts(Filter):
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'