Skip to content

Commit 37e29e8

Browse files
committed
Add missing param on photo-to-input conversion
Closes #4584.
1 parent 890bf48 commit 37e29e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

telethon/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ def get_input_media(
445445
if isinstance(media, types.MessageMediaPhoto):
446446
return types.InputMediaPhoto(
447447
id=get_input_photo(media.photo),
448+
spoiler=media.spoiler,
448449
ttl_seconds=ttl or media.ttl_seconds
449450
)
450451

0 commit comments

Comments
 (0)