2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-09-07 17:55:24 +00:00

Fix FILE_REFERENCE_* errors for uploads

This commit is contained in:
Dan
2019-09-21 22:13:02 +02:00
parent 1cd94520bf
commit 92c1b48132
31 changed files with 163 additions and 69 deletions

View File

@@ -1869,7 +1869,7 @@ class Client(Methods, BaseClient):
peer_access_hash: int,
volume_id: int,
local_id: int,
file_ref: bytes,
file_ref: str,
file_size: int,
is_big: bool,
progress: callable,
@@ -1910,6 +1910,8 @@ class Client(Methods, BaseClient):
self.media_sessions[dc_id] = session
file_ref = utils.decode_file_ref(file_ref)
if media_type == 1:
location = types.InputPeerPhotoFileLocation(
peer=types.InputPeerUser(