Skip to main content
Module

x/mtkruto/mod.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.0.997/mod.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.