Fix attribute order error

This commit is contained in:
Unknown 2018-02-18 18:12:08 +01:00
parent 91ae35e26c
commit efea0361c5

View file

@ -72,7 +72,7 @@ class Document(TelegramObject):
data['thumb'] = PhotoSize.de_json(data.get('thumb'), bot)
return cls(**data, bot=bot)
return cls(bot=bot, **data)
def get_file(self, timeout=None, **kwargs):
"""Convenience wrapper over :attr:`telegram.Bot.get_file`