1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update asyncio_helper.py

This commit is contained in:
_run 2022-07-01 15:39:42 +05:00 committed by GitHub
parent 5939e754bb
commit c920809fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ async def get_file_url(token, file_id):
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: else:
# noinspection PyUnresolvedReferences # noinspection PyUnresolvedReferences
return FILE_URL.format(token, 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): async def download_file(token, file_path):