diff --git a/handlers/filters/new_post.py b/handlers/filters/new_post.py index 295b2b2..2430481 100644 --- a/handlers/filters/new_post.py +++ b/handlers/filters/new_post.py @@ -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' \ No newline at end of file + return message.text and message.text.startswith("/change") and message.chat.type == 'private' \ No newline at end of file