Hi, I'm a beginner, so I think is quite easy question, anyway...
I've got telegram bot script, which has logic using arrays and dictionaries. In few words - when user send me reply to certain question array with question updates. When questions finished, if user accept - I update database.
Here is a problem. In payed account "hacker" 2 workers available, so I have my script running on 2 machines, and I don't control which one get reply from user. As I have 2 machines, I have 2 sets of variables, which comes to a real mess. If user's reply start with worker 1 (machine 1) and in the middle his reply go to worker 2, I have total destroy of logic.
May be is possible to have separate file, where I can hold my variables, and both workers will connect to this file when needed?
many thanks