Y
Y
Yura Mailler2020-10-26 18:52:15
Bots
Yura Mailler, 2020-10-26 18:52:15

How to enter data in a telegram bot?

I need the user to be able to after the registration word (I already did it) he was asked to come up with a password and login, etc.
Then they are stored in a variable. I hope you understand (I'm writing on aiogram)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dobryi_Mrak, 2020-10-26
@Dobryi_Mrak

After you have verified that the person wrote the registration, you store it in a database or dictionary, indicating that it is at the stage of creating a login. After that, you send a message to the user: "Please enter your login." The user sends a message. You look at what stage of the dialogue the user is at, if it is creating a login, then you save his answer as a login and change his stage to the following: creating a password. You also send a message: "Please, come up with a password." A message comes in and if it's from a user who is in the save password stage, then you save that message as a password.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question