mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Message add forward_from forward_date reply_to_message support.
This commit is contained in:
@@ -114,6 +114,12 @@ class Message(JsonDeserializable):
|
|||||||
date = obj['date']
|
date = obj['date']
|
||||||
content_type = None
|
content_type = None
|
||||||
opts = {}
|
opts = {}
|
||||||
|
if 'forward_from' in obj:
|
||||||
|
opts['forward_from'] = User.de_json(obj['forward_from'])
|
||||||
|
if 'forward_date' in obj:
|
||||||
|
opts['forward_date'] = obj['forward_date']
|
||||||
|
if 'reply_to_message' in obj:
|
||||||
|
opts['reply_to_message'] = Message.de_json(obj['reply_to_message'])
|
||||||
if 'text' in obj:
|
if 'text' in obj:
|
||||||
opts['text'] = obj['text']
|
opts['text'] = obj['text']
|
||||||
content_type = 'text'
|
content_type = 'text'
|
||||||
|
|||||||
Reference in New Issue
Block a user