Class TdApi.InputVoiceNote

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputVoiceNote
Enclosing class:
TdApi

public static class TdApi.InputVoiceNote extends TdApi.Object
A video note to be sent.
  • Field Details

    • voiceNote

      public TdApi.InputFile voiceNote
      Voice note file 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 duration
      Duration of the voice note, in seconds.
    • waveform

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

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputVoiceNote

      public InputVoiceNote()
      A video note to be sent.
    • InputVoiceNote

      public InputVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform)
      A video note to be sent.
      Parameters:
      voiceNote - Voice note file 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.
  • 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