Deleting a message after sending another one VKBottle

69 Views Asked by At

Hello programmers friends! I have a problem deleting a message after sending another one.

new_msg = await message.answer(attachment=photo)
    await asyncio.sleep(2)
    try:
        new_msg.delete()
    except Exception as e:
        pass
    await message.answer(response['choices'][0]['text'])

I read the documentation but didn't really understand it. Can you please help?

0

There are 0 best solutions below