public static class TdApi.VoiceNote extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the voice note, in seconds; as defined by the sender.
|
java.lang.String |
mimeType
MIME type of the file; as defined by the sender.
|
TdApi.File |
voice
File containing the voice note.
|
byte[] |
waveform
A waveform representation of the voice note in 5-bit format.
|
Constructor and Description |
---|
VoiceNote()
Describes a voice note.
|
VoiceNote(int duration,
byte[] waveform,
java.lang.String mimeType,
TdApi.File voice)
Describes a voice note.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int duration
public byte[] waveform
public java.lang.String mimeType
public TdApi.File voice
public static final int CONSTRUCTOR
public VoiceNote()
public VoiceNote(int duration, byte[] waveform, java.lang.String mimeType, TdApi.File voice)
duration
- Duration of the voice note, in seconds; as defined by the sender.waveform
- A waveform representation of the voice note in 5-bit format.mimeType
- MIME type of the file; as defined by the sender.voice
- File containing the voice note.public int getConstructor()
getConstructor
in class TdApi.Object