Package org.drinkless.tdlib
Class TdApi.DraftMessageContentVoiceNote
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.DraftMessageContent
org.drinkless.tdlib.TdApi.DraftMessageContentVoiceNote
- Enclosing class:
- TdApi
A voice note message draft.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.intDuration of the voice note, in seconds.Path to the file with the voice note.Voice note self-destruct type; may be null if none; pass null if none; private chats only.byte[]Waveform representation of the voice note in 5-bit format. -
Constructor Summary
ConstructorsConstructorDescriptionA voice note message draft.DraftMessageContentVoiceNote(String filePath, int duration, byte[] waveform, TdApi.MessageSelfDestructType selfDestructType) A voice note message draft. -
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
-
filePath
Path to the file with the voice note. -
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
-
DraftMessageContentVoiceNote
public DraftMessageContentVoiceNote()A voice note message draft. -
DraftMessageContentVoiceNote
public DraftMessageContentVoiceNote(String filePath, int duration, byte[] waveform, TdApi.MessageSelfDestructType selfDestructType) A voice note message draft.- Parameters:
filePath- Path to the file with the voice note.duration- Duration of the voice note, in seconds.waveform- Waveform 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.
-
-
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
-