mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
fix message.to_dict
This commit is contained in:
parent
d879a0d018
commit
7913d09295
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,8 @@ class Message(TelegramObject):
|
|||
data['forward_date'] = self._totimestamp(self.forward_date)
|
||||
if self.photo:
|
||||
data['photo'] = [p.to_dict() for p in self.photo]
|
||||
if self.entities:
|
||||
data['entities'] = [e.to_dict() for e in self.entities]
|
||||
if self.new_chat_photo:
|
||||
data['new_chat_photo'] = [p.to_dict() for p in self.new_chat_photo]
|
||||
|
||||
|
|
Loading…
Reference in a new issue