Skip to content

getInlineQueryResults

Function · TDLib 1.8.67 · d1085f9c

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

getInlineQueryResults(
  bot_user_id: int53,
  chat_id: int53,
  user_location: Location,
  query: string,
  offset: string
) → InlineQueryResults

bot_user_id

int53

Identifier of the target bot

chat_id

int53

Identifier of the chat where the query was sent

user_location

Location

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

query

string

Text of the query

offset

string

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