1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Little fixes and example

Fixed is_forwarded custom filter & created example
This commit is contained in:
coder2020official
2021-09-14 15:00:27 +05:00
parent 31c3b3b28e
commit 86a0a8cd68
2 changed files with 22 additions and 1 deletions

View File

@@ -97,7 +97,7 @@ class ForwardFilter(SimpleCustomFilter):
key = 'is_forwarded'
def check(self, message):
return message.forward_from_chat is not None
return message.forward_from is not None
class IsReplyFilter(SimpleCustomFilter):
"""