mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 09:32:49 +00:00
Fix edit_inline_media
This commit is contained in:
parent
48b94429c7
commit
87b3fb4c1b
@ -213,7 +213,7 @@ class EditInlineMedia:
|
||||
file_reference=uploaded_media.photo.file_reference
|
||||
),
|
||||
spoiler=getattr(media, "has_spoiler", None)
|
||||
) if isinstance(media, types.InputMediaPhoto) else raw.types.InputMediaDocument(
|
||||
) if isinstance(uploaded_media, raw.types.MessageMediaPhoto) else raw.types.InputMediaDocument(
|
||||
id=raw.types.InputDocument(
|
||||
id=uploaded_media.document.id,
|
||||
access_hash=uploaded_media.document.access_hash,
|
||||
|
Loading…
Reference in New Issue
Block a user