ReplyKeyboardMarkup rows parameter
Goodjee opened this issue · 4 comments
I've could not find a way to make custom keyboard shema.
row parameter is missing in replyKeyboardMarkup schema.
Hello. can you please take a look at this example https://github.com/ayrat555/frankenstein/blob/master/examples/reply_keyboard.rs
good to hear that you have some progress.
what do you mean by "how to markup keyboard," ?
Thanks for your time. I've figured it out. I needed to make keyboard with 2 buttons on first line and 1 button on second line.
I didn't see that keyboard is a Vector of keyboard vectors:
let mut keyboard: Vec<Vec<KeyboardButton>> = Vec::new();
let mut row: Vec<KeyboardButton> = Vec::new();
let mut row2: Vec<KeyboardButton> = Vec::new();
row.push(button);
row.push(button2);
row2.push(button3);
keyboard.push(row);
keyboard.push(row2);