I have telegram bot, master bot, and I have few child bots. So I want to make /delete command, where when user type in chat /delete he will get all his bots, and after that he enter id of bot which he want to delete, and later I delete it. Problem is after I list all bots to user, I don’t know how to get user input after that. After I list all bots, I reply to user enter id of bot you want to delete, and after that I don’t know what to do next. I use Telegraf API and Node.js.
I checked telegraf documentation, but I didn’t find any useful method inside ctx object that can solve my problem. I don’t have access to instance of master bot in that file, there are just middlewares and my commnads defined.
PajaPatak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.