public static class TdApi.InputInlineQueryResultVoiceNote extends TdApi.InputInlineQueryResult
TdApi.InputInlineQueryResult.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
id
Unique identifier of the query result.
|
TdApi.InputMessageContent |
inputMessageContent
The content of the message to be sent.
|
TdApi.ReplyMarkup |
replyMarkup
The message reply markup; pass null if none.
|
java.lang.String |
title
Title of the voice note.
|
int |
voiceNoteDuration
Duration of the voice note, in seconds.
|
java.lang.String |
voiceNoteUrl
The URL of the voice note file.
|
Constructor and Description |
---|
InputInlineQueryResultVoiceNote()
Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
|
InputInlineQueryResultVoiceNote(java.lang.String id,
java.lang.String title,
java.lang.String voiceNoteUrl,
int voiceNoteDuration,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String id
public java.lang.String title
public java.lang.String voiceNoteUrl
public int voiceNoteDuration
public TdApi.ReplyMarkup replyMarkup
public TdApi.InputMessageContent inputMessageContent
public static final int CONSTRUCTOR
public InputInlineQueryResultVoiceNote()
public InputInlineQueryResultVoiceNote(java.lang.String id, java.lang.String title, java.lang.String voiceNoteUrl, int voiceNoteDuration, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)
id
- Unique identifier of the query result.title
- Title of the voice note.voiceNoteUrl
- The URL of the voice note file.voiceNoteDuration
- Duration of the voice note, in seconds.replyMarkup
- The message reply markup; pass null if none. Must be of type replyMarkupInlineKeyboard or null.inputMessageContent
- The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote, inputMessageInvoice, inputMessageLocation, inputMessageVenue or inputMessageContact.public int getConstructor()
getConstructor
in class TdApi.InputInlineQueryResult