mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update custom_filters.py
This commit is contained in:
parent
86a0a8cd68
commit
fc31a2d466
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user