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