Answer the question
In order to leave comments, you need to log in
Telegram Bot Api, how to conduct a session with a user? How to write multiplayer bots?
I use the PyTelegramBotApi library. I assume that this library does not automatically open a session on each user, and I'm afraid that collisions may occur. How to be? How to create and maintain a session with a user?
Answer the question
In order to leave comments, you need to log in
I did for my bot https://telegram.me/Weekendflybot by storing the status in the database:
Entered start, start, /start anywhere - the status was reset to 0 and the user can start a new search.
Use state machines . Simply put, you need to store the state of the user at every point in time. For example, using db.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question