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


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


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


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


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