Relative Content

Tag Archive for telegram-bottelegraftelegraf.js

How to make telegram command where after initial command user get all available bots and after that he enters id of one bot

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.