From d9d414650aaa3c6d2357121e4a2a30521859883c Mon Sep 17 00:00:00 2001 From: s1xu Date: Sat, 8 Feb 2025 21:53:20 +0800 Subject: [PATCH] fix: support batch sending of image URLs and video URLs in albums --- 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 091e8d15..afb1f2c2 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -516,7 +516,7 @@ class UploadMethods: )) fm = utils.get_input_media(r.photo) - elif isinstance(fm, types.InputMediaUploadedDocument): + elif isinstance(fm, (types.InputMediaUploadedDocument, types.InputMediaDocumentExternal)): r = await self(functions.messages.UploadMediaRequest( entity, media=fm ))