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>KeyboardButtonCallback_

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

Callback button

Constructors

new
KeyboardButtonCallback_(params: { requires_password?: true; text: string; data: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
data: Uint8Array

Callback data

optional
requires_password: true

Whether the user should verify his identity by entering his 2FA SRP parameters to the messages.getBotCallbackAnswer method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user.

text: string

Button text

Static Properties

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