Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>KeyboardButtonRequestPeer_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class KeyboardButtonRequestPeer_
import { KeyboardButtonRequestPeer_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer

Constructors

new
KeyboardButtonRequestPeer_(params: { text: string; button_id: number; peer_type: enums.RequestPeerType; max_quantity: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
button_id: number

Button ID, to be passed to messages.sendBotRequestedPeer.

max_quantity: number

Maximum number of peers that can be chosne.

peer_type: enums.RequestPeerType

Filtering criteria to use for the peer selection list shown to the user.
The list should display all existing peers of the specified type, and should also offer an option for the user to create and immediately use one or more (up to max_quantity) peers of the specified type, if needed.

text: string

Button text

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc