Class TdApi.InputMessageVoiceNote
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InputMessageContent
dev.voroby.springframework.telegram.client.TdApi.InputMessageVoiceNote
- Enclosing class:
- TdApi
A voice note message.
-
Field Summary
Modifier and TypeFieldDescriptionVoice note caption; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.static final int
Identifier uniquely determining type of the object.int
Duration of the voice note, in seconds.Voice note self-destruct type; may be null if none; pass null if none; private chats only.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, TdApi.MessageSelfDestructType selfDestructType) A voice note message. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
voiceNote
Voice note 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. -
selfDestructType
Voice note self-destruct type; may be null if none; pass null if none; private chats only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputMessageVoiceNote
public InputMessageVoiceNote()A voice note message. -
InputMessageVoiceNote
public InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType) A voice note message.- Parameters:
voiceNote
- Voice note 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.caption
- Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.selfDestructType
- Voice note self-destruct type; may be null if none; pass null if none; private chats only.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-