D
D
Denze2022-03-26 21:19:25
Python
Denze, 2022-03-26 21:19:25

How to write message to vkbottle variable?

623f56c50b1ec150740043.jpeg
There is a code snippet. After clicking the "Specify (days)" button, the message "Please enter a number less than 30 in the message" is sent. After this message, I want to read the user's message into a variable. It is also desirable in a looped form as long as it is not numeric. I check for a number like this:
623f57cb8ac9b734417442.jpeg
But I have no idea how to make it not immediately take the last message from the user, but continue working as soon as the user writes a new message

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LXSTVAYNE, 2022-03-26
@lxstvayne

It is necessary to use the mathematical model of the Finite Automaton. Here is an example from vkbottle: https://github.com/vkbottle/vkbottle/blob/master/e...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question