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

Merge pull request #482 from sviat9440/master

Minor improvements
This commit is contained in:
FrankWang
2018-03-25 21:39:27 +08:00
committed by GitHub
3 changed files with 11 additions and 2 deletions

View File

@@ -356,6 +356,9 @@ class TeleBot:
def get_file(self, file_id):
return types.File.de_json(apihelper.get_file(self.token, file_id))
def get_file_url(self, file_id):
return apihelper.get_file_url(self.token, file_id)
def download_file(self, file_path):
return apihelper.download_file(self.token, file_path)