public static class TdApi.InputMessageVoiceNote extends TdApi.InputMessageContent
TdApi.InputMessageContent.Constructors
Modifier and Type | Field and Description |
---|---|
TdApi.FormattedText |
caption
Voice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the voice note, in seconds.
|
TdApi.InputFile |
voiceNote
Voice note to be sent.
|
byte[] |
waveform
Waveform representation of the voice note, in 5-bit format.
|
Constructor and Description |
---|
InputMessageVoiceNote()
A voice note message.
|
InputMessageVoiceNote(TdApi.InputFile voiceNote,
int duration,
byte[] waveform,
TdApi.FormattedText caption)
A voice note message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.InputFile voiceNote
public int duration
public byte[] waveform
public TdApi.FormattedText caption
public static final int CONSTRUCTOR
public InputMessageVoiceNote()
public InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption)
voiceNote
- Voice note to be sent.duration
- Duration of the voice note, in seconds.waveform
- Waveform representation of the voice note, in 5-bit format.caption
- Voice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.public int getConstructor()
getConstructor
in class TdApi.InputMessageContent