Answer the question
In order to leave comments, you need to log in
Turn off message handler aiogram after some time?
I have a message handler, I want it to work only on the first "hello", and no longer respond to the rest, that is, I need to turn it off after the first processing
@dp.message_handler(regexp="привет")
async def hello(message: types.Message):
await message.answer("Привет!")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question