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

PEP 8 & IntelliJ code clean-up.

This commit is contained in:
pieter
2015-06-30 05:54:04 +02:00
parent 34da2552dd
commit af02000534
4 changed files with 12 additions and 11 deletions

View File

@ -86,7 +86,8 @@ def send_location(token, chat_id, latitude, longitude, reply_to_message_id=None,
req = requests.get(request_url, params=payload)
return check_result(method_url, req)
def send_chat_action(token,chat_id,action):
def send_chat_action(token, chat_id, action):
api_url = telebot.API_URL
method_url = r'sendChatAction'
request_url = api_url + 'bot' + token + '/' + method_url
@ -94,6 +95,7 @@ def send_chat_action(token,chat_id,action):
req = requests.get(request_url, params=payload)
return check_result(method_url, req)
def send_data(token, chat_id, data, data_type, reply_to_message_id=None, reply_markup=None):
api_url = telebot.API_URL
method_url = get_method_by_type(data_type)