2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Small style fix

This commit is contained in:
Dan 2019-09-25 18:41:06 +02:00
parent a541bb45db
commit bc7d29237d

View File

@ -1881,19 +1881,23 @@ class Client(Methods, BaseClient):
for session in pool:
await session.stop()
async def get_file(self, media_type: int,
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,
peer_access_hash: int,
volume_id: int,
local_id: int,
file_ref: str,file_size: int,
file_ref: str,
file_size: int,
is_big: bool,
progress: callable,
progress_args: tuple = ()) -> str:
progress_args: tuple = ()
) -> str:
async with self.media_sessions_lock:
session = self.media_sessions.get(dc_id, None)