Class TdApi.InputMessageVoiceNote

    • Field Detail

      • 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; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 - Voice note to be sent.
        duration - Duration of the voice note, in seconds.
        waveform - Waveform representation of the voice note, in 5-bit format.
        caption - Voice note caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters.