From 211238fcd2cc31340caee8da5c50d3fb118f5289 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 24 Jul 2023 17:23:09 +0200 Subject: [PATCH] Fix reply_to when sending albums --- telethon/client/uploads.py | 2 +- telethon/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 57d1c790..bcc87b5d 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -496,7 +496,7 @@ class UploadMethods: # Now we can construct the multi-media request request = functions.messages.SendMultiMediaRequest( - entity, reply_to=types.InputReplyToMessage(reply_to), multi_media=media, + entity, reply_to=None if reply_to is None else types.InputReplyToMessage(reply_to), multi_media=media, silent=silent, schedule_date=schedule, clear_draft=clear_draft, background=background ) diff --git a/telethon/version.py b/telethon/version.py index 384693ea..904ff1bc 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.29.1' +__version__ = '1.29.2'