From b17831b726c67cec2e358b7101eafccfb0ca9865 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Wed, 19 Aug 2015 18:27:35 +0800 Subject: [PATCH] Update Comment. --- telebot/__init__.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index fedeec3..0528340 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -233,18 +233,29 @@ class TeleBot: def send_audio(self, chat_id, audio, duration=None, performer=None, title=None, reply_to_message_id=None, reply_markup=None): """ - Use this method to send audio files, if you want Telegram clients to display the file as a playable - voice message. For this to work, your audio must be in an .ogg file encoded with OPUS - :param chat_id: - :param data: - :param reply_to_message_id: + Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format. + :param chat_id:Unique identifier for the message recipient + :param audio:Audio file to send. + :param duration:Duration of the audio in seconds + :param performer:Performer + :param title:Track name + :param reply_to_message_id:If the message is a reply, ID of the original messag :param reply_markup: - :return: API reply. + :return: Message """ return types.Message.de_json( apihelper.send_audio(self.token, chat_id, audio,duration,performer,title, reply_to_message_id, reply_markup)) def send_voice(self, chat_id, voice, duration=None, reply_to_message_id=None, reply_markup=None): + """ + Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. + :param chat_id:Unique identifier for the message recipient. + :param voice: + :param duration:Duration of sent audio in seconds + :param reply_to_message_id: + :param reply_markup: + :return: Message + """ return types.Message.de_json( apihelper.send_voice(self.token, chat_id, voice, duration, reply_to_message_id,reply_markup))