SwitchInlineQuery#

SwitchInlineQuery is a special kind of inline keyboard button that opens a text input field for the user to enter a query.

You can additionally specify a text that will occur in the query field (e.g. @mytestbot some query)

from aiogram_dialog.widgets.kbd import SwitchInlineQuery
from aiogram_dialog.widgets.text import Const

switch_query = SwitchInlineQuery(
    Const("Some search"),  # Button text
    Const("order")  # Additinal text to search
)