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

@@ -61,6 +61,10 @@ def get_me(token):
method_url = 'getMe'
return _make_request(token, method_url)
def get_file(token, file_id):
method_url = 'getFile'
return _make_request(token, method_url, params={'file_id': file_id})
def send_message(token, chat_id, text, disable_web_page_preview=None, reply_to_message_id=None, reply_markup=None,
parse_mode=None):