V
V
Vladislav2021-07-15 01:24:33
Node.js
Vladislav, 2021-07-15 01:24:33

What is my bot error and how to fix telegraf?

What is the bot error and how to fix telegraf?
When you press keyboardButtons with "Specify the name of the movie" goes to the search for a movie by name. Then, when you click "Specify the id of the movie search", the bot does not go to the search for a movie by id

bot.hears(kb.home.titleFilms, async (ctx) => {
  ctx.reply("Укажите название фильм");
  await bot.on("message", titleFilm());
});

bot.hears(kb.home.idFilms, async (ctx) => {
  ctx.reply("Укажите id кинопоиска");
  await bot.on("message", kpIdFilm());
});


Zo2UC.png

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