ayrat555/frankenstein

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.

I did! But unfortunately i did not find how to markup keybord, for example like on this picture:
InlineKeyboardMarkup-full

I think some functionality from telegram API is missing.

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);