mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-12 15:38:03 +03:00
Handle documents inside albums
With the cleanup on f813759
, this will now work cleanly.
This commit is contained in:
parent
f8137595c5
commit
6d4c8ba8ff
|
@ -311,6 +311,11 @@ class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods):
|
|||
entity, media=fm
|
||||
))
|
||||
fm = utils.get_input_media(r.photo)
|
||||
elif isinstance(fm, types.InputMediaUploadedDocument):
|
||||
r = await self(functions.messages.UploadMediaRequest(
|
||||
entity, media=fm
|
||||
))
|
||||
fm = utils.get_input_media(r.document)
|
||||
|
||||
if captions:
|
||||
caption, msg_entities = captions.pop()
|
||||
|
|
Loading…
Reference in New Issue
Block a user