InlineQuery

Description

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

Attributes

Name Type Description
id str Unique identifier for this query
from_user User Sender
query str Text of the query (up to 256 characters)
offset str Offset of the results to be returned, can be controlled by the bot
location Optional[Location] Optional. Sender location, only for bots that request user location

Location

  • from aiogram.types import InlineQuery
  • from aiogram.api.types import InlineQuery
  • from aiogram.api.types.inline_query import InlineQuery

Aliases

Aliases is always returns related API method (Awaitable) and can be used directly or as answer's into webhook.

Answer

This method has the same specification with the API but without inline_query_id argument.

Answer method Alias for Description
answer Bot.answer_inline_query Answer to inline query