Package org.drinkless.tdlib
Class TdApi.InputVoiceNote
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputVoiceNote
- Enclosing class:
- TdApi
A video note to be sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intDuration of the voice note, in seconds.Voice note file to be sent.byte[]Waveform representation of the voice note in 5-bit format. -
Constructor Summary
ConstructorsConstructorDescriptionA video note to be sent.InputVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform) A video note to be sent. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
voiceNote
Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio. -
duration
public int durationDuration of the voice note, in seconds. -
waveform
public byte[] waveformWaveform representation of the voice note in 5-bit format. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputVoiceNote
public InputVoiceNote()A video note to be sent. -
InputVoiceNote
A video note to be sent.- Parameters:
voiceNote- Voice note file to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio.duration- Duration of the voice note, in seconds.waveform- Waveform representation of the voice note in 5-bit format.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-