L
L
Lynatik0012020-07-19 19:00:09
Bots
Lynatik001, 2020-07-19 19:00:09

How can I display 2 keyboards in Telegram bot?

I have keyboard keyboard and inlineKeyboard. They all work great. I need to output both of them Output both in one response. Since the output of another message is not very good
ctx.reply('otvet', botPanelKeyboard, Botmenu);

const frontMenu = (...arrayOfLabel) => Telegraf.Extra.markdown().markup((m) => m.inlineKeyboard(
  arrayOfLabel.map((a) => a.map((b) => m.callbackButton(b.name, b.callback))),
));
const keyboardMenu = (...arrayOfLabel) => Markup.keyboard(
  arrayOfLabel.map((a) => a.map((b) => b)),
).oneTime()
  .resize()
  .extra();

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question