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

Added download_file

This commit is contained in:
pieter
2015-09-18 20:53:10 +02:00
parent fd1f16598b
commit 1038d4fafa
2 changed files with 20 additions and 7 deletions

View File

@ -22,10 +22,6 @@ from telebot import apihelper, types, util
"""
Module : telebot
"""
API_URL = r"https://api.telegram.org/"
class TeleBot:
""" This is TeleBot Class
Methods:
@ -172,6 +168,9 @@ class TeleBot:
def get_file(self, file_id):
return types.File.de_json(apihelper.get_file(self.token, file_id))
def download_file(self, file_path):
return apihelper.download_file(self.token, file_path)
def get_user_profile_photos(self, user_id, offset=None, limit=None):
"""
Retrieves the user profile photos of the person with 'user_id'