U
U
user_732020-07-21 22:59:26
Python
user_73, 2020-07-21 22:59:26

Reception of 2 messages in different variables?

Good day, I ran into a problem that I can’t receive 2 messages and put them in different variables. split is not appropriate here.

Example:
Bot: Enter your nickname
Me: my nickname
Bot: enter your date of birth
Me:1970.1.1
Bot: saved

Please help, really needed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2020-07-22
@user_73

Create a dictionary for the user and check if there is a nickname there, if not then add it, and on the next message the nickname will already be added and then add the date

D
Dimonchik, 2020-07-22
@dimonchik2013

append
then by index to different

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question