Skip to content

Commit ffff093

Browse files
jsmnbomjh0ker
authored andcommitted
Add forwarded filter (python-telegram-bot#392)
1 parent 00bba73 commit ffff093

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

telegram/ext/messagehandler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def status_update(message):
8080
or message.group_chat_created or message.supergroup_chat_created
8181
or message.channel_chat_created or message.migrate_to_chat_id
8282
or message.migrate_from_chat_id or message.pinned_message)
83+
84+
@staticmethod
85+
def forwarded(message):
86+
return bool(message.forward_date)
8387

8488

8589
class MessageHandler(Handler):

0 commit comments

Comments
 (0)