Answer the question
In order to leave comments, you need to log in
How does a multi-user telegram bot work?
Hello!
Some time ago I started to get interested in telegram bots. There are no problems with single-user bots - a tree of responses / information input is built, for example, if you need to write down the full name separately, then you can simply set the step-by-step input, what follows, like:
send-> Last name
send-> First name
send-> Middle name
This works because after the introduction of the Surname, the bot is waiting for the Name to be entered into it, etc.
Actually, the question is: how is this implemented in multi-user bots? After all, between the Last Name and First Name, for example, another user writes, his request is processed, and then the bot returns to the full name record.
Could you please tell us how it is implemented in theory? Or leave links. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
As an option, have a database with chat user id and check for a message to the bot which person is writing and what he needs to send
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question