From 23e0c545031b8a579de3170be2b6bd8debd8b75f Mon Sep 17 00:00:00 2001 From: Googleplex Date: Mon, 25 Jan 2021 15:19:37 +0800 Subject: [PATCH] Support sending album by URL --- telethon/client/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 939718a3..127d2a11 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -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 ))