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 )