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

Added File & getFile, including testing

This commit is contained in:
pieter
2015-09-18 20:31:29 +02:00
parent 07c28830db
commit fd1f16598b
5 changed files with 45 additions and 0 deletions

View File

@ -169,6 +169,9 @@ class TeleBot:
result = apihelper.get_me(self.token)
return types.User.de_json(result)
def get_file(self, file_id):
return types.File.de_json(apihelper.get_file(self.token, file_id))
def get_user_profile_photos(self, user_id, offset=None, limit=None):
"""
Retrieves the user profile photos of the person with 'user_id'