MadelineProto/docs/TD_docs/constructors/replyMarkupShowKeyboard.md
2017-07-23 16:33:46 +02:00

1.5 KiB

title description
replyMarkupShowKeyboard Contains custom keyboard layout for fast reply to bot

Constructor: replyMarkupShowKeyboard

Back to constructors index

Contains custom keyboard layout for fast reply to bot

Attributes:

Name Type Required Description
rows Array of keyboardButton> Yes List of rows of bot keyboard buttons
resize_keyboard Bool Yes Do clients need to resize keyboard vertically
one_time Bool Yes Do clients need to hide keyboard after use
personal Bool Yes Keyboard is showed automatically only for mentioned users or replied to user, for incoming messages it is true if and only if keyboard needs to be automatically showed to current user

Type: ReplyMarkup

Example:

$replyMarkupShowKeyboard = ['_' => 'replyMarkupShowKeyboard', 'rows' => [keyboardButton>], 'resize_keyboard' => Bool, 'one_time' => Bool, 'personal' => Bool];

PWRTelegram json-encoded version:

{"_": "replyMarkupShowKeyboard", "rows": [keyboardButton>], "resize_keyboard": Bool, "one_time": Bool, "personal": Bool}

Or, if you're into Lua:

replyMarkupShowKeyboard={_='replyMarkupShowKeyboard', rows={keyboardButton>}, resize_keyboard=Bool, one_time=Bool, personal=Bool}