2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +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: 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)