Class: TD::Types::InputMessageContent::VoiceNote
- Inherits:
-
TD::Types::InputMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::InputMessageContent
- TD::Types::InputMessageContent::VoiceNote
- Defined in:
- lib/tdlib/types/input_message_content/voice_note.rb
Overview
A voice note message.
Instance Attribute Summary collapse
-
#caption ⇒ TD::Types::FormattedText?
Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
-
#duration ⇒ Integer
Duration of the voice note, in seconds.
-
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType?
Voice note self-destruct type; may be null if none; pass null if none; private chats only.
-
#voice_note ⇒ TD::Types::InputFile
Voice note to be sent.
-
#waveform ⇒ String
Waveform representation of the voice note in 5-bit format.
Method Summary
Methods inherited from Base
Instance Attribute Details
#caption ⇒ TD::Types::FormattedText?
Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13 def @caption end |
#duration ⇒ Integer
Duration of the voice note, in seconds.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13 def duration @duration end |
#self_destruct_type ⇒ TD::Types::MessageSelfDestructType?
Voice note self-destruct type; may be null if none; pass null if none; private chats only.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13 def self_destruct_type @self_destruct_type end |
#voice_note ⇒ TD::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.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13 def voice_note @voice_note end |
#waveform ⇒ String
Waveform representation of the voice note in 5-bit format.
13 14 15 |
# File 'lib/tdlib/types/input_message_content/voice_note.rb', line 13 def waveform @waveform end |