Fix Python 3

This commit is contained in:
Leandro Toledo 2015-08-28 17:53:31 -03:00
parent a86fc6c2ac
commit 98c489c44f

View file

@ -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()