M
M
megorka2021-09-30 20:24:12
Python
megorka, 2021-09-30 20:24:12

Aiogram how to delete a message?

@dp.message_handler()
async def filter_messages(message: types.Message):
    if mat in message.text:
        
    await message.delete()

Issues
File "F:\ACLib\main.py", line 17
    await message.delete()
    ^
IndentationError: expected an indented block

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question