mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-29 03:32:49 +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()
|
||||
|
||||
for key, value in self.__dict__.iteritems():
|
||||
for key, value in self.__dict__.items():
|
||||
if value:
|
||||
if hasattr(value, 'to_dict'):
|
||||
data[key] = value.to_dict()
|
||||
|
|
Loading…
Reference in a new issue