mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Pass the required file_reference when editing media messages
This commit is contained in:
parent
207d451a01
commit
3e900214f4
@ -92,7 +92,7 @@ class EditMessageMedia(BaseClient):
|
|||||||
id=types.InputPhoto(
|
id=types.InputPhoto(
|
||||||
id=media.photo.id,
|
id=media.photo.id,
|
||||||
access_hash=media.photo.access_hash,
|
access_hash=media.photo.access_hash,
|
||||||
file_reference=b""
|
file_reference=media.photo.file_reference
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif media.media.startswith("http"):
|
elif media.media.startswith("http"):
|
||||||
@ -129,7 +129,7 @@ class EditMessageMedia(BaseClient):
|
|||||||
id=types.InputDocument(
|
id=types.InputDocument(
|
||||||
id=media.document.id,
|
id=media.document.id,
|
||||||
access_hash=media.document.access_hash,
|
access_hash=media.document.access_hash,
|
||||||
file_reference=b""
|
file_reference=media.document.file_reference
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif media.media.startswith("http"):
|
elif media.media.startswith("http"):
|
||||||
@ -165,7 +165,7 @@ class EditMessageMedia(BaseClient):
|
|||||||
id=types.InputDocument(
|
id=types.InputDocument(
|
||||||
id=media.document.id,
|
id=media.document.id,
|
||||||
access_hash=media.document.access_hash,
|
access_hash=media.document.access_hash,
|
||||||
file_reference=b""
|
file_reference=media.document.file_reference
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif media.media.startswith("http"):
|
elif media.media.startswith("http"):
|
||||||
@ -203,7 +203,7 @@ class EditMessageMedia(BaseClient):
|
|||||||
id=types.InputDocument(
|
id=types.InputDocument(
|
||||||
id=media.document.id,
|
id=media.document.id,
|
||||||
access_hash=media.document.access_hash,
|
access_hash=media.document.access_hash,
|
||||||
file_reference=b""
|
file_reference=media.document.file_reference
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif media.media.startswith("http"):
|
elif media.media.startswith("http"):
|
||||||
@ -234,7 +234,7 @@ class EditMessageMedia(BaseClient):
|
|||||||
id=types.InputDocument(
|
id=types.InputDocument(
|
||||||
id=media.document.id,
|
id=media.document.id,
|
||||||
access_hash=media.document.access_hash,
|
access_hash=media.document.access_hash,
|
||||||
file_reference=b""
|
file_reference=media.document.file_reference
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
elif media.media.startswith("http"):
|
elif media.media.startswith("http"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user