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; may be null if empty; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13

def caption
  @caption
end

#durationInteger

Duration of the voice note, in seconds.

Returns:

  • (Integer)

    the current value of duration



13
14
15
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13

def duration
  @duration
end

#self_destruct_typeTD::Types::MessageSelfDestructType?

Voice note self-destruct type; may be null if none; pass null if none; private chats only.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13

def self_destruct_type
  @self_destruct_type
end

#voice_noteTD::Types::InputFile

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.

Returns:



13
14
15
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13

def voice_note
  @voice_note
end

#waveformString

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

Returns:

  • (String)

    the current value of waveform



13
14
15
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13

def waveform
  @waveform
end