mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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=media.photo.id,
|
||||
access_hash=media.photo.access_hash,
|
||||
file_reference=b""
|
||||
file_reference=media.photo.file_reference
|
||||
)
|
||||
)
|
||||
elif media.media.startswith("http"):
|
||||
@ -129,7 +129,7 @@ class EditMessageMedia(BaseClient):
|
||||
id=types.InputDocument(
|
||||
id=media.document.id,
|
||||
access_hash=media.document.access_hash,
|
||||
file_reference=b""
|
||||
file_reference=media.document.file_reference
|
||||
)
|
||||
)
|
||||
elif media.media.startswith("http"):
|
||||
@ -165,7 +165,7 @@ class EditMessageMedia(BaseClient):
|
||||
id=types.InputDocument(
|
||||
id=media.document.id,
|
||||
access_hash=media.document.access_hash,
|
||||
file_reference=b""
|
||||
file_reference=media.document.file_reference
|
||||
)
|
||||
)
|
||||
elif media.media.startswith("http"):
|
||||
@ -203,7 +203,7 @@ class EditMessageMedia(BaseClient):
|
||||
id=types.InputDocument(
|
||||
id=media.document.id,
|
||||
access_hash=media.document.access_hash,
|
||||
file_reference=b""
|
||||
file_reference=media.document.file_reference
|
||||
)
|
||||
)
|
||||
elif media.media.startswith("http"):
|
||||
@ -234,7 +234,7 @@ class EditMessageMedia(BaseClient):
|
||||
id=types.InputDocument(
|
||||
id=media.document.id,
|
||||
access_hash=media.document.access_hash,
|
||||
file_reference=b""
|
||||
file_reference=media.document.file_reference
|
||||
)
|
||||
)
|
||||
elif media.media.startswith("http"):
|
||||
|
Loading…
Reference in New Issue
Block a user