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

x/grammy/mod.ts>Keyboard.requestChat

The Telegram Bot Framework.
Very Popular
Latest
method Keyboard.requestChat
import { Keyboard } from "https://deno.land/x/grammy@v1.32.0/mod.ts";

Creates a new request chat button. When the user presses the button, a list of suitable users will be opened. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message. Available in private chats only.

Parameters

text: string

The text to display

requestId: number

A signed 32-bit identifier of the request

optional
options: Omit<KeyboardButtonRequestChat, "request_id"> = [UNSUPPORTED]

Options object for further requirements

Returns

KeyboardButton.RequestChatButton