Function get_inline_query_results

Source
pub async fn get_inline_query_results(
    bot_user_id: i64,
    chat_id: i64,
    user_location: Option<Location>,
    query: String,
    offset: String,
    client_id: i32,
) -> Result<InlineQueryResults, Error>
Expand description

Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires

§Arguments

  • bot_user_id - Identifier of the target bot
  • chat_id - Identifier of the chat where the query was sent
  • user_location - Location of the user; pass null if unknown or the bot doesn’t need user’s location
  • query - Text of the query
  • offset - Offset of the first entry to return; use empty string to get the first chunk of results
  • client_id - The client id to send the request to