mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-08 19:34:12 +01:00
Fix attribute order error
This commit is contained in:
parent
91ae35e26c
commit
efea0361c5
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class Document(TelegramObject):
|
||||||
|
|
||||||
data['thumb'] = PhotoSize.de_json(data.get('thumb'), bot)
|
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):
|
def get_file(self, timeout=None, **kwargs):
|
||||||
"""Convenience wrapper over :attr:`telegram.Bot.get_file`
|
"""Convenience wrapper over :attr:`telegram.Bot.get_file`
|
||||||
|
|
Loading…
Reference in a new issue