From 2f13f1b884393832b8bfbeb24e639bc5c9c74141 Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Sun, 5 Nov 2023 01:48:08 +0300 Subject: [PATCH] Filter fix --- handlers/filters/new_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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