Package org.drinkless.tdlib
Class TdApi.InputMessageVoiceNote
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InputMessageContent
-
- org.drinkless.tdlib.TdApi.InputMessageVoiceNote
-
- Enclosing class:
- TdApi
public static class TdApi.InputMessageVoiceNote extends TdApi.InputMessageContent
A voice note message.
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.FormattedTextcaptionVoice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.static intCONSTRUCTORIdentifier uniquely determining type of the object.intdurationDuration of the voice note, in seconds.TdApi.InputFilevoiceNoteVoice note to be sent.byte[]waveformWaveform representation of the voice note, in 5-bit format.
-
Constructor Summary
Constructors Constructor Description InputMessageVoiceNote()A voice note message.InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption)A voice note message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
voiceNote
public TdApi.InputFile voiceNote
Voice note to be sent.
-
duration
public int duration
Duration of the voice note, in seconds.
-
waveform
public byte[] waveform
Waveform representation of the voice note, in 5-bit format.
-
caption
public TdApi.FormattedText caption
Voice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputMessageVoiceNote
public InputMessageVoiceNote()
A voice note message.
-
InputMessageVoiceNote
public InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption)
A voice note message.- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-