Add forwarded filter (#392)

This commit is contained in:
Jacob Bom 2016-08-23 16:55:50 +02:00 committed by Jannes Höke
parent 00bba73673
commit ffff0938f4

View file

@ -81,6 +81,10 @@ class Filters(object):
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):
"""