Module

x/grammy/mod.ts>Keyboard#requestUser

The Telegram Bot Framework.
Very Popular
Go to Latest
method Keyboard.prototype.requestUser
import { Keyboard } from "https://dotland.deno.dev/x/grammy@v1.15.2/mod.ts";

Adds a new request user button. When the user presses the button, a list of suitable users will be opened. Tapping on any user will send their identifier to the bot in a “user_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<KeyboardButtonRequestUser, "request_id"> = [UNSUPPORTED]

Options object for further requirements