-
Notifications
You must be signed in to change notification settings - Fork 21
Type: Keyboard
Mahdi Dibaiee edited this page Jul 3, 2015
·
1 revision
This class is used to configure the reply_markup
of messages.
Usually passed to keyboard
method of other types.
Here is the chainable method equivalent of each option:
- keys => keyboard
- resize => resize_keyboard
- oneTime => one_time_keyboard
- selective => selective
- hide => hide_keyboard
- force => force_reply
const kb = new Keyboard()
.keys([['A'], ['B'], ['C']])
.force(true)
.resize(true)
.oneTime(true)
.selective(true);
// After some time, decide to hide it
kb.hide();