Skip to content

Commit

Permalink
Added the field is_automatic_forward to the class Message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustafa Asaad committed Mar 8, 2022
1 parent eb62102 commit 118fb78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tgbotapi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def __init__(self, message_id, from_user, sender_chat, date, chat, options):
self.forward_from_message_id = None
self.forward_from = None
self.forward_date = None
self.is_automatic_forward = False
self.reply_to_message = None
self.via_bot = None
self.has_protected_content = False
Expand Down Expand Up @@ -343,6 +344,8 @@ def de_json(cls, obj_type):
opts['forward_signature'] = obj['forward_signature']
if 'forward_date' in obj:
opts['forward_date'] = obj['forward_date']
if 'is_automatic_forward' in obj:
opts['is_automatic_forward'] = obj['is_automatic_forward']
if 'reply_to_message' in obj:
opts['reply_to_message'] = Message.de_json(obj['reply_to_message'])
if 'via_bot' in obj:
Expand Down

0 comments on commit 118fb78

Please sign in to comment.