Class TdApi.InputMessageVoiceNote

Enclosing class:
TdApi

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

    • voiceNote

      public TdApi.InputFile voiceNote
      Voice note to be sent.
    • 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

      public TdApi.FormattedText caption
      Voice note caption; 0-GetOption("message_caption_length_max") characters.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      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)
      A voice note message.
      Parameters:
      voiceNote - InputFile Voice note to be sent.
      duration - int Duration of the voice note, in seconds.
      waveform - byte[] Waveform representation of the voice note, in 5-bit format.
      caption - FormattedText Voice note caption; 0-GetOption("message_caption_length_max") characters.
    • InputMessageVoiceNote

      public InputMessageVoiceNote​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details