N
N
Nikita Kudrin2020-10-25 15:01:31
In contact with
Nikita Kudrin, 2020-10-25 15:01:31

What is wrong?

There is code for node-vk-bot-api:

bot.command('/start', async (ctx) => {
  try {
    await ctx.reply('Hello, world!', null, Markup
    .keyboard([
      Markup.button({
        action: {
        type: 'text',
        label: 'test',
        payload: ({
          type: 'show_snackbar',
          text: 'Test test test',
        }),
      },
        color: 'default',
      }),
    ]),
    );
  } catch (e) {
    console.error(e);
  }
});

what am I doing wrong?
Why doesn't it display the snackbar when the button is clicked?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2020-10-25
@opium

So you start debugging and look.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question