X Tutup
Skip to content

Commit 7913d09

Browse files
committed
fix message.to_dict
1 parent d879a0d commit 7913d09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

telegram/message.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ def to_dict(self):
198198
data['forward_date'] = self._totimestamp(self.forward_date)
199199
if self.photo:
200200
data['photo'] = [p.to_dict() for p in self.photo]
201+
if self.entities:
202+
data['entities'] = [e.to_dict() for e in self.entities]
201203
if self.new_chat_photo:
202204
data['new_chat_photo'] = [p.to_dict() for p in self.new_chat_photo]
203205

0 commit comments

Comments
 (0)
X Tutup