java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputMessageContent
it.tdlight.jni.TdApi.InputMessageVoiceNote
- Enclosing class:
- TdApi
A voice note message.
-
Field Summary
Modifier and TypeFieldDescriptionVoice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.static final int
int
Duration of the voice note, in seconds.Voice note to be sent.byte[]
Waveform representation of the voice note in 5-bit format. -
Constructor Summary
ConstructorDescriptionA voice note message.InputMessageVoiceNote
(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption) A voice note message.InputMessageVoiceNote
(DataInput input) A voice note message. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
voiceNote
Voice note to be sent. -
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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
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
- InputFile Voice note to be sent.duration
- int Duration of the voice note, in seconds.waveform
- byte[] Waveform representation of the voice note in 5-bit format.caption
- FormattedText Voice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
-
InputMessageVoiceNote
A voice note message.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-