Answer the question
In order to leave comments, you need to log in
How to properly organize the telegram bot process if there are several tokens in the database?
There is one command handler file (the same commands for all users) for the telegram bot, there is an n-th number of users with their information on responses to commands and tokens for their bot stored in the database. Is it possible, and how to make it so that one launched file works with all bots (so that the bot with its token is not launched separately for each user)?
I am using node-telegram-bot-api and mongoDB
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