Class: TD::Types::MessageContent::VoiceNote

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/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.

Returns:



7
8
9
# File 'lib/tdlib/types/message_content/voice_note.rb', line 7

def caption
  @caption
end

#is_listenedBoolean

True, if at least one of the recipients has listened to the voice note.

Returns:

  • (Boolean)

    the current value of is_listened



7
8
9
# File 'lib/tdlib/types/message_content/voice_note.rb', line 7

def is_listened
  @is_listened
end

#voice_noteTD::Types::VoiceNote

Message content.

Returns:



7
8
9
# File 'lib/tdlib/types/message_content/voice_note.rb', line 7

def voice_note
  @voice_note
end