Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Make one state that accepts numbers. Tired of accepting - we complete
class Form(StatesGroup):
number = State()
@dp.message_handler(state=Form.number)
async def process_number(message: types.Message, state: FSMContext):
if message.text != “0”:
await message.reply(message.text)
else:
await state.finish()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question