mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
parent
65bf0e4c45
commit
a886d609d9
|
@ -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