From 37e29e8f1335ca1c54b57eedcd3d554b411e4825 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 20 Mar 2025 16:47:52 +0100 Subject: [PATCH] Add missing param on photo-to-input conversion Closes #4584. --- telethon/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/utils.py b/telethon/utils.py index 84a9cd5a..eaf36e1e 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -445,6 +445,7 @@ def get_input_media( if isinstance(media, types.MessageMediaPhoto): return types.InputMediaPhoto( id=get_input_photo(media.photo), + spoiler=media.spoiler, ttl_seconds=ttl or media.ttl_seconds )