lib/tdlib/client_methods.rb
# Sets the result of an inline query; for bots only.
#
# @param inline_query_id [Integer] Identifier of the inline query.
# @param is_personal [Boolean] True, if the result of the query can be cached for the specified user.
# @param results [Array<TD::Types::InputInlineQueryResult>] The results of the query.
# @param cache_time [Integer] Allowed time to cache the results of the query, in seconds.
# @param next_offset [TD::Types::String] Offset for the next inline query; pass an empty string if there are no more
#   results.
# @param switch_pm_text [TD::Types::String] If non-empty, this text must be shown on the button that opens a private
#   chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter.
# @param switch_pm_parameter [TD::Types::String] The parameter for the bot start message.
# @return [TD::Types::Ok]
Sets the result of an inline query; for bots only.
Sets the result of an inline query ; for bots only .
def answer_inline_query(inline_query_id:, is_personal:, results:, cache_time:, next_offset:, switch_pm_text:,
                          switch_pm_parameter:)
    broadcast('@type'               => 'answerInlineQuery',
              'inline_query_id'     => inline_query_id,
              'is_personal'         => is_personal,
              'results'             => results,
              'cache_time'          => cache_time,
              'next_offset'         => next_offset,
              'switch_pm_text'      => switch_pm_text,
              'switch_pm_parameter' => switch_pm_parameter)
  end
def answer_inline_query ( inline_query_id : , is_personal : , results : , cache_time : , next_offset : , switch_pm_text : , switch_pm_parameter : ) broadcast ( '@type' => 'answerInlineQuery' , 'inline_query_id' => inline_query_id , 'is_personal' => is_personal , 'results' => results , 'cache_time' => cache_time , 'next_offset' => next_offset , 'switch_pm_text' => switch_pm_text , 'switch_pm_parameter' => switch_pm_parameter ) end
Sets the result of an inline query; for bots only.
Sets the result of an inline query ; for bots only .
None
TD::Types::Ok
inline_query_id
Identifier of the inline query.
Identifier of the inline query .
is_personal
True, if the result of the query can be cached for the specified user.
True if the result of the query can be cached for the specified user .
results
The results of the query.
The results of the query .
cache_time
Allowed time to cache the results of the query, in seconds.
Allowed time to cache the results of the query in seconds .
next_offset
Offset for the next inline query; pass an empty string if there are no more results.
Offset for the next inline query ; pass an empty string if there are no more results .
switch_pm_text
If non-empty, this text must be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter.
If non - empty this text must be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter .
switch_pm_parameter
The parameter for the bot start message.
The parameter for the bot start message .