Class TdApi.DraftMessageContentVoiceNote

Enclosing class:
TdApi

public static class TdApi.DraftMessageContentVoiceNote extends TdApi.DraftMessageContent
A voice note message draft.
  • Field Details

    • filePath

      public String filePath
      Path to the file with the voice note.
    • duration

      public int duration
      Duration of the voice note, in seconds.
    • waveform

      public byte[] waveform
      Waveform representation of the voice note in 5-bit format.
    • selfDestructType

      public TdApi.MessageSelfDestructType selfDestructType
      Voice note self-destruct type; may be null if none; pass null if none; private chats only.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR