Interface GetInlineQueryResults

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. Request type for Tdjson#getInlineQueryResults.

interface GetInlineQueryResults {
    @type: "getInlineQueryResults";
    bot_user_id: number;
    chat_id: number;
    offset: string;
    query: string;
    user_location: Location;
}

Properties

@type: "getInlineQueryResults"
bot_user_id: number

Identifier of the target bot.

chat_id: number

Identifier of the chat where the query was sent.

offset: string

Offset of the first entry to return; use empty string to get the first chunk of results.

query: string

Text of the query.

user_location: Location

Location of the user; pass null if unknown or the bot doesn't need user's location.