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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy