diff --git a/telegram/base.py b/telegram/base.py index bcbc04315..ac0deac0f 100644 --- a/telegram/base.py +++ b/telegram/base.py @@ -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()