telegram.inlinequeryresultaudio module¶
This module contains the classes that represent Telegram InlineQueryResultAudio
-
class
telegram.inlinequeryresultaudio.InlineQueryResultAudio(id, audio_url, title, performer=None, audio_duration=None, caption=None, reply_markup=None, input_message_content=None, **kwargs)¶ Bases:
telegram.inlinequeryresult.InlineQueryResultRepresents a link to an mp3 audio file. 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.
-
id¶ str
-
audio_url¶ str
-
title¶ str
-
performer¶ Optional[str]
-
audio_duration¶ Optional[str]
-
caption¶ Optional[str]
-
reply_markup¶ Optional[
telegram.InlineKeyboardMarkup]
-
input_message_content¶ Optional[
telegram.input_message_content]
- Deprecated: 4.0
message_text (str): Use
InputTextMessageContentinstead.parse_mode (str): Use
InputTextMessageContentinstead.disable_web_page_preview (bool): Use
InputTextMessageContentinstead.
Parameters: - audio_url (str) –
- title (str) –
- performer (Optional[str]) –
- audio_duration (Optional[str]) –
- caption (Optional[str]) –
- reply_markup (Optional[
telegram.InlineKeyboardMarkup]) – - input_message_content (Optional[
telegram.input_message_content]) – - **kwargs (dict) – Arbitrary keyword arguments.
-
static
de_json(data, bot)¶
-