Answer the question
In order to leave comments, you need to log in
How to make Telegram bot work for each user separately with JS?
The task of the bot is simple accounting of financial expenses
. When I make expenses, they are also paid to another user, when he enters or conducts various operations with him, everything that he entered is visible to me. In short, the bot works in one copy for all users
Tell me what should I do?
Answer the question
In order to leave comments, you need to log in
without a database - in any way.
in the database, each user is assigned ID, balance, etc.
in the code, for each action, you write something like: "CHOOSE balance WHERE ID user = user ID"
Yes, what is there to think about. If there was a problem in the database or scripts, the author would have asked a different question: "My site does not work!". And since the site is displayed - with a large, just a gigantic probability of a problem in some kind of connected external resource. There is a script or an old counter from a medieval server, which is no longer in sight.
And in the author's console the filter is not set to ALL.
Vladislav Lyskov , page-forming requests are reflected in the TTFB parameter, along with all the junk like php loops, etc. And since on most sites there are no such costs for executing php scripts, most of this parameter can be taken as fetches from shmablitz tables :)
For starters, it makes sense to turn off the ad blocker in the browser.
Some counters and puzomerki, being cut off, give just such an effect.
as correctly written above, if external crooked scripts are connected on the site, then the site will not load and execute them until it is loaded, it will be in a loading state. and it can be very long...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question