1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 13:26:55 +01:00
MadelineProto/docs/TD_docs/constructors/keyboardButton.md
2017-07-23 16:11:02 +02:00

908 B

title description
keyboardButton Represents one button of the bot keyboard

Constructor: keyboardButton

Back to constructors index

Represents one button of the bot keyboard

Attributes:

Name Type Required Description
text string Yes Text of the button
type KeyboardButtonType Yes Type of the button

Type: KeyboardButton

Example:

$keyboardButton = ['_' => 'keyboardButton', 'text' => string, 'type' => KeyboardButtonType, ];

PWRTelegram json-encoded version:

{"_":"keyboardButton","text":"string","type":"KeyboardButtonType"}

Or, if you're into Lua:

keyboardButton={_='keyboardButton', text=string, type=KeyboardButtonType, }