Class: TD::Types::InputMessageContent::VoiceNote

Inherits:
TD::Types::InputMessageContent show all
Defined in:
lib/tdlib/types/input_message_content/voice_note.rb

Overview

A voice note message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#captionTD::Types::FormattedText

Voice note caption; 0-GetOption("message_caption_length_max") characters.

Returns:



8
9
10
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 8

def caption
  @caption
end

#durationInteger

Duration of the voice note, in seconds.

Returns:

  • (Integer)

    the current value of duration



8
9
10
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 8

def duration
  @duration
end

#voice_noteTD::Types::InputFile

Voice note to be sent.

Returns:



8
9
10
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 8

def voice_note
  @voice_note
end

#waveformString

Waveform representation of the voice note, in 5-bit format.

Returns:

  • (String)

    the current value of waveform



8
9
10
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 8

def waveform
  @waveform
end