mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Small style fix
This commit is contained in:
parent
a541bb45db
commit
bc7d29237d
@ -1881,19 +1881,23 @@ class Client(Methods, BaseClient):
|
||||
for session in pool:
|
||||
await session.stop()
|
||||
|
||||
async def get_file(self, media_type: int,
|
||||
dc_id: int,
|
||||
document_id: int,
|
||||
access_hash: int,
|
||||
thumb_size: str,
|
||||
peer_id: int,
|
||||
peer_access_hash: int, volume_id: int,
|
||||
local_id: int,
|
||||
file_ref: str,file_size: int,
|
||||
|
||||
is_big: bool,
|
||||
progress: callable,
|
||||
progress_args: tuple = ()) -> str:
|
||||
async def get_file(
|
||||
self,
|
||||
media_type: int,
|
||||
dc_id: int,
|
||||
document_id: int,
|
||||
access_hash: int,
|
||||
thumb_size: str,
|
||||
peer_id: int,
|
||||
peer_access_hash: int,
|
||||
volume_id: int,
|
||||
local_id: int,
|
||||
file_ref: str,
|
||||
file_size: int,
|
||||
is_big: bool,
|
||||
progress: callable,
|
||||
progress_args: tuple = ()
|
||||
) -> str:
|
||||
async with self.media_sessions_lock:
|
||||
session = self.media_sessions.get(dc_id, None)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user