Skip to content Skip to sidebar Skip to footer

How To Start A New Poll Only After Answering For A Previous One?

I have a simple code here. Im using https://github.com/yagop/node-telegram-bot-api telegram framework to make my first bot. I have array with 10 questions in it. So i can't underst

Solution 1:

You need some sort of queue or flow manager. I can recommend node-telegram-operation-manager or mau query engine. Alternatively you can use a database to keep track of answers from a particular userId. With this approach you would send only the 1st poll. Then the rest of the polls would be sent based on the logic inside the poll event listener.


Post a Comment for "How To Start A New Poll Only After Answering For A Previous One?"