Use JobQueue.run_once to delete the message after x seconds. Have a look at the wiki and this example.
@Bibo-Joshi Because bots sadly dont have an option to send self destructing media, you will need to reproduce that behavior like Bibo showed you
Use
JobQueue.run_onceto delete the message after x seconds. Have a look at the wiki and this example.
Thanks. And is there a way to prevent user from saving the image? I want to delete image after x seconds and I want to be sure that user can't take screen shot from the display or neither save image in the gallery. Is this possible?
I guess not, but that would be out of scope of PTB anyway
Most helpful comment
Use
JobQueue.run_onceto delete the message after x seconds. Have a look at the wiki and this example.