From 142553387181c088c16ce1570a7248669cb17375 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Mon, 25 Apr 2016 20:15:05 -0300 Subject: [PATCH] Adds docstring to InlineQueryResultCachedAudio --- telegram/inlinequeryresultcachedaudio.py | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/telegram/inlinequeryresultcachedaudio.py b/telegram/inlinequeryresultcachedaudio.py index ffca243f5..669733f84 100644 --- a/telegram/inlinequeryresultcachedaudio.py +++ b/telegram/inlinequeryresultcachedaudio.py @@ -25,6 +25,35 @@ from telegram import InlineQueryResult, InlineKeyboardMarkup, \ class InlineQueryResultCachedAudio(InlineQueryResult): + """Represents a link to an mp3 audio file stored on the Telegram + servers. By default, this audio file will be sent by the user. + Alternatively, you can use input_message_content to send a message with + the specified content instead of the audio. + + Attributes: + id (str): + audio_file_id (str): + reply_markup (Optional[:class:`telegram.InlineKeyboardMarkup`]): + input_message_content (Optional[ + :class:`telegram.input_message_content`]): + + Deprecated: 4.0 + message_text (str): Use :class:`InputTextMessageContent` instead. + + parse_mode (str): Use :class:`InputTextMessageContent` instead. + + disable_web_page_preview (bool): Use :class:`InputTextMessageContent` + instead. + + Args: + audio_file_id (str): + **kwargs: Arbitrary keyword arguments. + + Keyword Args: + reply_markup (Optional[:class:`telegram.InlineKeyboardMarkup`]): + input_message_content (Optional[ + :class:`telegram.input_message_content`]): + """ def __init__(self, id, audio_file_id,