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

x/mtkruto/types/1_keyboard_button.ts>KeyboardButton.RequestUser

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

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

Properties

requestUser: { requestId: number; userIsBot?: boolean; userIsPremium?: boolean; }

If specified, pressing the button will open a list of suitable users. Tapping on any user will send their identifier to the bot in a "user_shared" service message. Available in private chats only.