lib/tdlib/client_methods.rb
def send_inline_query_result_message(chat_id:, message_thread_id:, reply_to_message_id:, options:, query_id:,
                                       result_id:, hide_via_bot:)
    broadcast('@type'               => 'sendInlineQueryResultMessage',
              'chat_id'             => chat_id,
              'message_thread_id'   => message_thread_id,
              'reply_to_message_id' => reply_to_message_id,
              'options'             => options,
              'query_id'            => query_id,
              'result_id'           => result_id,
              'hide_via_bot'        => hide_via_bot)
  end
# Sends the result of an inline query as a message.
# Returns the sent message.
# Always clears a chat draft message.
#
# @param chat_id [Integer] Target chat.
# @param message_thread_id [Integer] If not 0, a message thread identifier in which the message will be sent.
# @param reply_to_message_id [Integer] Identifier of a message to reply to or 0.
# @param options [TD::Types::MessageSendOptions] Options to be used to send the message; pass null to use default
#   options.
# @param query_id [Integer] Identifier of the inline query.
# @param result_id [TD::Types::String] Identifier of the inline result.
# @param hide_via_bot [Boolean] If true, there will be no mention of a bot, via which the message is sent.
#   Can be used only for bots GetOption("animation_search_bot_username"), GetOption("photo_search_bot_username") and
#   GetOption("venue_search_bot_username").
# @return [TD::Types::Message]
Sends the result of an inline query as a message.
Returns the sent message.
Always clears a chat draft message.
Sends the result of an inline query as a message . Returns the sent message . Always clears a chat draft message .
def send_inline_query_result_message(chat_id:, message_thread_id:, reply_to_message_id:, options:, query_id:,
                                       result_id:, hide_via_bot:)
    broadcast('@type'               => 'sendInlineQueryResultMessage',
              'chat_id'             => chat_id,
              'message_thread_id'   => message_thread_id,
              'reply_to_message_id' => reply_to_message_id,
              'options'             => options,
              'query_id'            => query_id,
              'result_id'           => result_id,
              'hide_via_bot'        => hide_via_bot)
  end
def send_inline_query_result_message ( chat_id : , message_thread_id : , reply_to_message_id : , options : , query_id : , result_id : , hide_via_bot : ) broadcast ( '@type' => 'sendInlineQueryResultMessage' , 'chat_id' => chat_id , 'message_thread_id' => message_thread_id , 'reply_to_message_id' => reply_to_message_id , 'options' => options , 'query_id' => query_id , 'result_id' => result_id , 'hide_via_bot' => hide_via_bot ) end
Sends the result of an inline query as a message.
Sends the result of an inline query as a message .
None
TD::Types::Message
chat_id
None
message_thread_id
If not 0, a message thread identifier in which the message will be sent.
If not 0 a message thread identifier in which the message will be sent .
reply_to_message_id
Identifier of a message to reply to or 0.
Identifier of a message to reply to or 0 .
options
Options to be used to send the message; pass null to use default options.
Options to be used to send the message ; pass null to use default options .
query_id
Identifier of the inline query.
Identifier of the inline query .
result_id
Identifier of the inline result.
Identifier of the inline result .
hide_via_bot
If true, there will be no mention of a bot, via which the message is sent. Can be used only for bots GetOption("animation_search_bot_username"), GetOption("photo_search_bot_username") and GetOption("venue_search_bot_username").
If true there will be no mention of a bot via which the message is sent . Can be used only for bots GetOption ( " animation_search_bot_username " ) GetOption ( " photo_search_bot_username " ) and GetOption ( " venue_search_bot_username " ) .