Pass the required file_reference when editing media messages

This commit is contained in:
Dan 2020-04-06 16:09:35 +02:00
parent 207d451a01
commit 3e900214f4

View File

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