Add missing param on photo-to-input conversion

Closes #4584.
This commit is contained in:
Lonami Exo 2025-03-20 16:47:52 +01:00
parent 890bf485c9
commit 37e29e8f13

View File

@ -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
)