From fc31a2d466e5d4e252fb9668f2929e7f3a43c98c Mon Sep 17 00:00:00 2001 From: coder2020official Date: Tue, 14 Sep 2021 15:02:54 +0500 Subject: [PATCH] Update custom_filters.py --- telebot/custom_filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/custom_filters.py b/telebot/custom_filters.py index 9a3c233..7fc1866 100644 --- a/telebot/custom_filters.py +++ b/telebot/custom_filters.py @@ -87,7 +87,7 @@ class ChatFilter(AdvancedCustomFilter): class ForwardFilter(SimpleCustomFilter): """ - Check whether message was forwarded. + Check whether message was forwarded from channel or group. Example: @@ -97,7 +97,7 @@ class ForwardFilter(SimpleCustomFilter): key = 'is_forwarded' def check(self, message): - return message.forward_from is not None + return message.forward_from_chat is not None class IsReplyFilter(SimpleCustomFilter): """