Home > database >  How i can delete message after send in telethon?
How i can delete message after send in telethon?

Time:11-08

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()
  • Related