Raw.KeyboardButtonCallback
Callback button
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
export namespace Raw {
export class KeyboardButtonCallback {
constructor(params: { requiresPassword?: boolean; text: string; data: Buffer }) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x35bbdb6b
Property
requiresPassword
: boolean or undefinedWhether 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
: stringButton text
data
: BufferCallback data