mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
Add forwarded filter (#392)
This commit is contained in:
parent
00bba73673
commit
ffff0938f4
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ class Filters(object):
|
|||
or message.group_chat_created or message.supergroup_chat_created
|
||||
or message.channel_chat_created or message.migrate_to_chat_id
|
||||
or message.migrate_from_chat_id or message.pinned_message)
|
||||
|
||||
@staticmethod
|
||||
def forwarded(message):
|
||||
return bool(message.forward_date)
|
||||
|
||||
|
||||
class MessageHandler(Handler):
|
||||
|
|
Loading…
Reference in a new issue