Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>KeyboardButtonSwitchInline_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class KeyboardButtonSwitchInline_
import { KeyboardButtonSwitchInline_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.

Constructors

new
KeyboardButtonSwitchInline_(params: { same_peer?: true; text: string; query: string; peer_types?: Array<enums.InlineQueryPeerType>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
peer_types: Array<enums.InlineQueryPeerType>

Filter to use when selecting chats.

query: string

The inline query to use

optional
same_peer: true

If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field.

text: string

Button label

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc