public static class TdApi.InputMessageVoiceNote extends TdApi.InputMessageContent
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
Voice note caption; may be null if empty; 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.MessageSelfDestructType |
selfDestructType
Voice note self-destruct type; may be null if none; pass null if none; private chats only.
|
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,
TdApi.MessageSelfDestructType selfDestructType)
A voice note message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.InputFile voiceNote
public int duration
public byte[] waveform
public TdApi.FormattedText caption
public TdApi.MessageSelfDestructType selfDestructType
public static final int CONSTRUCTOR
public InputMessageVoiceNote()
public InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType)
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object