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

Update apihelper.py

This commit is contained in:
sviat9440 2018-03-25 14:54:28 +03:00 committed by GitHub
parent cb0256b37d
commit e761e1e1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ def get_file(token, file_id):
def get_file_url(token, file_id): def get_file_url(token, file_id):
method_url = r'getFile' method_url = r'getFile'
return FILE_URL.format(token, types.File.de_json(_make_request(token, method_url, params={'file_id': file_id})).file_path) return FILE_URL.format(token, get_file(token, file_id).file_path)
def download_file(token, file_path): def download_file(token, file_path):