send_inline_query_result_message

Function send_inline_query_result_message 

Source
pub async fn send_inline_query_result_message(
    chat_id: i64,
    message_thread_id: i64,
    reply_to: Option<InputMessageReplyTo>,
    options: Option<MessageSendOptions>,
    query_id: i64,
    result_id: String,
    hide_via_bot: bool,
    client_id: i32,
) -> Result<Message, Error>
Expand description

Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message

§Arguments

  • chat_id - Target chat
  • message_thread_id - If not 0, the message thread identifier in which the message will be sent
  • reply_to - Information about the message or story to be replied; pass null if none
  • options - Options to be used to send the message; pass null to use default options
  • query_id - Identifier of the inline query
  • result_id - Identifier of the inline query result
  • hide_via_bot - Pass true to hide the 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”)
  • client_id - The client id to send the request to