From 16d4c64b008052022ae537bac78c354207721b0a Mon Sep 17 00:00:00 2001 From: eternnoir Date: Tue, 19 Apr 2016 08:13:37 +0800 Subject: [PATCH] Remove duplicated method. --- telebot/apihelper.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 6e25f04..6f56e22 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -404,16 +404,6 @@ def answer_inline_query(token, inline_query_id, results, cache_time=None, is_per return _make_request(token, method_url, params=payload, method='post') -def answer_callback_query(token, callback_query_id, text=None, show_alert=None): - method_url = 'answerCallbackQuery' - payload = {'callback_query_id': callback_query_id} - if text: - payload['text'] = text - if show_alert: - payload['show_alert'] = show_alert - return _make_request(token, method_url, params=payload, method='post') - - def _convert_inline_results(results): ret = '' for r in results: