From 7913d0929514042d1a4feca26d55d41a21328f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Mon, 18 Apr 2016 21:35:39 +0200 Subject: [PATCH] fix message.to_dict --- telegram/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram/message.py b/telegram/message.py index d7d0e4e2a..27e0cccd7 100644 --- a/telegram/message.py +++ b/telegram/message.py @@ -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]