L
L
Lynatik0012020-06-30 21:37:18
JavaScript
Lynatik001, 2020-06-30 21:37:18

Mongoose push button menu output?

displays a menu with reply - but the first argument is mandatory there, it must be text - above the button. Is there a function that would call without text?
+ a guide on the implementation of competently menus in the cart via telegraf, if anyone has one, I would not refuse

bot.hears('/main', (ctx) => {
  ctx.reply('hi',frontMenu());
});


function frontMenu() {
  const testMenu = Telegraf.Extra
    .markdown()
    .markup((m) => m.inlineKeyboard([
      m.callbackButton('Панель управления', 'menu1_1'),
      m.callbackButton('Баланс', 'menu1_2'),
      m.callbackButton('Модули', 'menu1_3'),
      m.callbackButton('Статистика', 'menu1_4'),

    ]));

  return testMenu;
}

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