mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 16:46:35 +01:00
Fix Python 3
This commit is contained in:
parent
a86fc6c2ac
commit
98c489c44f
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class TelegramObject(object):
|
||||||
"""
|
"""
|
||||||
data = dict()
|
data = dict()
|
||||||
|
|
||||||
for key, value in self.__dict__.iteritems():
|
for key, value in self.__dict__.items():
|
||||||
if value:
|
if value:
|
||||||
if hasattr(value, 'to_dict'):
|
if hasattr(value, 'to_dict'):
|
||||||
data[key] = value.to_dict()
|
data[key] = value.to_dict()
|
||||||
|
|
Loading…
Reference in a new issue