Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Latest
method Keyboard.prototype.requestUsers
import { Keyboard } from "https://deno.land/x/grammy@v1.30.1/convenience/keyboard.ts";

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

Options object for further requirements