telegram can't handle requests from multiple users and cannot store user data #1639
Unanswered
simabmagwa
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It seems like you’re done something wrong… |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I've created a telegram bot using telegraf+mysql+node.js . My telegram bot however cannot handle multiple user requests, it mixes them up and after a while it actually loses the data stored (I store data from DB in dataStore=[], it works for a while but after a few requests I receive a 'dataStore is not defined' error. from the articles I read, it seems my bot is in need of "Sessions and state management" and I honestly don't know if that's the solution and if it is how to implement it. Please help, your assistance and response would be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions