An easy to use and simple implementation of VK keyboard types in Rust with serde support.
toml
[dependencies]
vk_keyboard = "*"
Check /examples
directory for more examples.
rust
let kb: Keyboard = keyboard!(
true,
lines!(
buttons!(
text_button!(
ButtonColor::Positive,
"Hello world!",
payload!("payload" => "of the button")
),
text_button!("Hello second")
),
buttons!(
text_button!("Hello world on the second line"),
text_button!("second hello world on the second line")
)
)
);