Answer the question
In order to leave comments, you need to log in
[AIOGRAM] How to make an infinite class with state?
I need to make a randomizer that will take the n-th number of values from the user, and then choose one of them (Roulette without animation). I know how to make the selection of one of the elements itself, but how to make an infinite receipt of values from the user?
class Choice(StatesGroup):
choice = State()
global add_1
add_1 = 1
Answer the question
In order to leave comments, you need to log in
To accumulate input results, it is convenient to use lists. Learn how to work with lists, loops, iterators and don't reinvent the wheel.
As a last resort, look at github for how other people solve similar problems.
And leave the bots alone. It's too complicated for beginners.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question