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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user