Answer the question
In order to leave comments, you need to log in
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());
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question