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

@ -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):