From 3f589b287deca7b3aa9abc5136bec2ec26a4e7ae Mon Sep 17 00:00:00 2001 From: Arkadii Halchenko <106999186+EntireMusic@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:50:08 +0300 Subject: [PATCH] Fix parse_mode with albums (#4494) Closes #4492. --- 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 45d2d786..82437b5f 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -422,7 +422,7 @@ class UploadMethods: return result - if formatting_entities is not None: + if formatting_entities: msg_entities = formatting_entities else: caption, msg_entities =\