Package org.drinkless.tdlib

# Class TdApi.InputMessageVoiceNote

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputMessageContent
org.drinkless.tdlib.TdApi.InputMessageVoiceNote

Enclosing class:
  TdApi

public static class TdApi.InputMessageVoiceNote extends TdApi.InputMessageContent
A voice note message.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.InputMessageContent

  `TdApi.InputMessageContent.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  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 final 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 Summary

  Constructors
  Constructor
  Description
  `InputMessageVoiceNote()`
  A voice note message.
  `InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType)`
  A voice note message.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### voiceNote

    public TdApi.InputFile 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

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

  - ### waveform

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

  - ### caption

    @Nullable public 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.

  - ### selfDestructType

    @Nullable 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:
      - Constant Field Values

- ## Constructor Details

  - ### InputMessageVoiceNote

    public InputMessageVoiceNote()
    A voice note message.

  - ### InputMessageVoiceNote

    public InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType)
    A voice note message.
    Parameters:
      `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.

- ## 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.InputMessageContent`
    Returns:
      this.CONSTRUCTOR