[−][src]Module vk_bot::keyboard
Keyboards.
Example
Keyboard::new( // Vec of rows vec![ // Row 0 vec![ Button::new("A", Color::Primary, None), Button::new("B", Color::Default, None), ], // Row 1 vec![ Button::new("C", Color::Positive, None), Button::new("D", Color::Negative, Some("{\"payload\": \"json\"}".into())), ], ], false, );
will look like this:
ⓘThis example is not tested
column 0 column 1 +-----------+-----------+ row 0 | A | B | +-----------+-----------+ row 1 | C | D | +-----------+-----------+
Structs
Button | A button of a keyboard. |
ButtonAction | A |
Keyboard | A keyboard consisting of |
Enums
Color | The color of a button. |