From 8898e3b8cc6902f2a057ddacc1bb6d903eb2ba74 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sun, 28 Jun 2015 17:27:25 +0800 Subject: [PATCH] Add some comment. --- telebot/__init__.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/telebot/__init__.py b/telebot/__init__.py index 6a73e79..975afb8 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -112,6 +112,15 @@ class TeleBot: return u def send_message(self, chat_id, text, disable_web_page_preview=None, reply_to_message_id=None, reply_markup=None): + """ + Use this method to send text messages. + :param chat_id: + :param text: + :param disable_web_page_preview: + :param reply_to_message_id: + :param reply_markup: + :return: + """ return apihelper.send_message(self.token, chat_id, text, disable_web_page_preview, reply_to_message_id, reply_markup) @@ -183,4 +192,13 @@ class TeleBot: return apihelper.send_data(self.token, chat_id, data, 'video', reply_to_message_id, reply_markup) def send_location(self, chat_id, latitude, longitude, reply_to_message_id=None, reply_markup=None): + """ + Use this method to send point on the map. + :param chat_id: + :param latitude: + :param longitude: + :param reply_to_message_id: + :param reply_markup: + :return: + """ return apihelper.send_location(self.token, chat_id, latitude, longitude, reply_to_message_id, reply_markup)