From add240adfdcb5584b978349e8953aa44e34b38a2 Mon Sep 17 00:00:00 2001 From: _run Date: Wed, 14 Dec 2022 12:41:30 +0400 Subject: [PATCH] Update asyncio_helper.py --- telebot/asyncio_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/asyncio_helper.py b/telebot/asyncio_helper.py index 6118d84..9f5b59a 100644 --- a/telebot/asyncio_helper.py +++ b/telebot/asyncio_helper.py @@ -171,10 +171,10 @@ async def get_file(token, file_id): async def get_file_url(token, file_id): if FILE_URL is None: - return "https://api.telegram.org/file/bot{0}/{1}".format(token, await get_file(token, file_id)['file_path']) + return "https://api.telegram.org/file/bot{0}/{1}".format(token, (await get_file(token, file_id))['file_path']) else: # noinspection PyUnresolvedReferences - return FILE_URL.format(token, await get_file(token, file_id)['file_path']) + return FILE_URL.format(token, (await get_file(token, file_id))['file_path']) async def download_file(token, file_path):