mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Support sending album by URL
This commit is contained in:
parent
65bf0e4c45
commit
23e0c54503
|
@ -406,7 +406,7 @@ class UploadMethods:
|
|||
fh, fm, _ = await self._file_to_media(
|
||||
file, supports_streaming=supports_streaming,
|
||||
force_document=force_document)
|
||||
if isinstance(fm, types.InputMediaUploadedPhoto):
|
||||
if isinstance(fm, (types.InputMediaUploadedPhoto, types.InputMediaPhotoExternal)):
|
||||
r = await self(functions.messages.UploadMediaRequest(
|
||||
entity, media=fm
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue
Block a user