Class InlineQueryResultCachedVoice
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultCachedVoice
-
public class InlineQueryResultCachedVoice extends InlineQueryResult
Represents a link to a voice message stored on the Telegram servers By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedVoice()
InlineQueryResultCachedVoice(String voiceFileId, String title)
InlineQueryResultCachedVoice(String voiceFileId, String title, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultCachedVoice
public InlineQueryResultCachedVoice()
-
InlineQueryResultCachedVoice
public InlineQueryResultCachedVoice(String voiceFileId, String title)
- Parameters:
voiceFileId
- A valid file identifier for the voice messagetitle
- Title
-
InlineQueryResultCachedVoice
public InlineQueryResultCachedVoice(String voiceFileId, String title, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
voiceFileId
- A valid file identifier for the voice messagetitle
- Titlecaption
- Optional. Caption, 0-200 charactersreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-