mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Small style fix
This commit is contained in:
parent
a541bb45db
commit
bc7d29237d
1 changed files with 17 additions and 13 deletions
|
|
@ -1881,19 +1881,23 @@ class Client(Methods, BaseClient):
|
||||||
for session in pool:
|
for session in pool:
|
||||||
await session.stop()
|
await session.stop()
|
||||||
|
|
||||||
async def get_file(self, media_type: int,
|
async def get_file(
|
||||||
dc_id: int,
|
self,
|
||||||
document_id: int,
|
media_type: int,
|
||||||
access_hash: int,
|
dc_id: int,
|
||||||
thumb_size: str,
|
document_id: int,
|
||||||
peer_id: int,
|
access_hash: int,
|
||||||
peer_access_hash: int, volume_id: int,
|
thumb_size: str,
|
||||||
local_id: int,
|
peer_id: int,
|
||||||
file_ref: str,file_size: int,
|
peer_access_hash: int,
|
||||||
|
volume_id: int,
|
||||||
is_big: bool,
|
local_id: int,
|
||||||
progress: callable,
|
file_ref: str,
|
||||||
progress_args: tuple = ()) -> str:
|
file_size: int,
|
||||||
|
is_big: bool,
|
||||||
|
progress: callable,
|
||||||
|
progress_args: tuple = ()
|
||||||
|
) -> str:
|
||||||
async with self.media_sessions_lock:
|
async with self.media_sessions_lock:
|
||||||
session = self.media_sessions.get(dc_id, None)
|
session = self.media_sessions.get(dc_id, None)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue