X Tutup
Skip to content

Commit efea036

Browse files
committed
Fix attribute order error
1 parent 91ae35e commit efea036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

telegram/files/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def de_json(cls, data, bot):
7272

7373
data['thumb'] = PhotoSize.de_json(data.get('thumb'), bot)
7474

75-
return cls(**data, bot=bot)
75+
return cls(bot=bot, **data)
7676

7777
def get_file(self, timeout=None, **kwargs):
7878
"""Convenience wrapper over :attr:`telegram.Bot.get_file`

0 commit comments

Comments
 (0)
X Tutup