Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/3_types.ts>KeyboardButton.RequestChat

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface KeyboardButton.RequestChat
implements Text
import { type KeyboardButton } from "https://deno.land/x/mtkruto@0.1.130/3_types.ts";
const { RequestChat } = KeyboardButton;

This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.

Properties

requestChat: { requestId: number; chatIsChannel: boolean; chatIsForum?: boolean; chatHasUsername?: boolean; chatIsCreated?: boolean; userAdministratorRights?: ChatAdministratorRights; botAdministratorRights?: ChatAdministratorRights; botIsMember?: boolean; }

If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a "chat_shared" service message. Available in private chats only.