Class: TD::Types::InlineQueryResults

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/inline_query_results.rb

Overview

Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#inline_query_idInteger

Unique identifier of the inline query.

Returns:

  • (Integer)

    the current value of inline_query_id



12
13
14
# File 'lib/tdlib/types/inline_query_results.rb', line 12

def inline_query_id
  @inline_query_id
end

#next_offsetString

The offset for the next request. If empty, there are no more results.

Returns:

  • (String)

    the current value of next_offset



12
13
14
# File 'lib/tdlib/types/inline_query_results.rb', line 12

def next_offset
  @next_offset
end

#resultsArray<TD::Types::InlineQueryResult>

Results of the query.

Returns:



12
13
14
# File 'lib/tdlib/types/inline_query_results.rb', line 12

def results
  @results
end

#switch_pm_parameterString

Parameter for the bot start message.

Returns:

  • (String)

    the current value of switch_pm_parameter



12
13
14
# File 'lib/tdlib/types/inline_query_results.rb', line 12

def switch_pm_parameter
  @switch_pm_parameter
end

#switch_pm_textString

If non-empty, this text should be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switch_pm_parameter.

Returns:

  • (String)

    the current value of switch_pm_text



12
13
14
# File 'lib/tdlib/types/inline_query_results.rb', line 12

def switch_pm_text
  @switch_pm_text
end