Very Popular
Go to Latest
interface InlineKeyboardButton.SwitchInlineCurrentChatButton
implements AbstractInlineKeyboardButton
import { type InlineKeyboardButton } from "https://dotland.deno.dev/x/grammy@v1.12.0/types.deno.ts";
const { SwitchInlineCurrentChatButton } = InlineKeyboardButton;

Properties

switch_inline_query_current_chat: string

If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot's username will be inserted.

This offers a quick way for the user to open your bot in inline mode in the same chat – good for selecting something from multiple options.