Z
Z
ZiKyou2021-12-04 01:13:32
Python
ZiKyou, 2021-12-04 01:13:32

How to make it so that the user enters data and they are stored in a separate aiogram python variable?

the bot sends a message "Are you 18 years old" the user has two buttons "yes" "no" the user selects an option, it is checked through if if yes then the user is asked for his exact age and his age is stored in a new variable. And I need that part of the code that will store the age in a variable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LXSTVAYNE, 2021-12-04
@lxstvayne

The dialog system uses a tool called FSM (Finite State Machines).
Here is a good tutorial on them: https://mastergroosha.github.io/telegram-tutorial-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question