Class: TD::Types::InputInlineQueryResult::VoiceNote

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/voice_note.rb

Overview

Represents a link to an opus-encoded audio file within an OGG container, single channel audio.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::String)

    the current value of id



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

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageVoiceNote, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.

Returns:



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

def input_message_content
  @input_message_content
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



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

def reply_markup
  @reply_markup
end

#titleTD::Types::String

Title of the voice note.

Returns:

  • (TD::Types::String)

    the current value of title



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

def title
  @title
end

#voice_note_durationInteger

Duration of the voice note, in seconds.

Returns:

  • (Integer)

    the current value of voice_note_duration



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

def voice_note_duration
  @voice_note_duration
end

#voice_note_urlTD::Types::String

The URL of the voice note file.

Returns:

  • (TD::Types::String)

    the current value of voice_note_url



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

def voice_note_url
  @voice_note_url
end