I send a message to the user via await client.send_message(entity, message)
how can i delete this message?
it's not work
mes= await client.send_message(entity, message)
client.delete_message(mes.id)
CodePudding user response:
This should work:
mes = await client.send_message(entity, message)
await mes.delete()