mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1832 from coder2020official/master
Fix bug related to get_user_profile_photos
This commit is contained in:
commit
c3c12b93dd
@ -171,10 +171,10 @@ async def get_file(token, file_id):
|
|||||||
|
|
||||||
async def get_file_url(token, file_id):
|
async def get_file_url(token, file_id):
|
||||||
if FILE_URL is None:
|
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:
|
else:
|
||||||
# noinspection PyUnresolvedReferences
|
# 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):
|
async def download_file(token, file_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user