diff --git a/telebot/asyncio_helper.py b/telebot/asyncio_helper.py index 168edff..17575e7 100644 --- a/telebot/asyncio_helper.py +++ b/telebot/asyncio_helper.py @@ -149,7 +149,7 @@ 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, 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, get_file(token, file_id)['file_path']) @@ -1821,4 +1821,4 @@ class RequestTimeout(Exception): """ This class represents a request timeout. """ - pass \ No newline at end of file + pass