Python-telegram-bot: How can I send self destructing photos with python telegram bot?

Created on 3 Aug 2020  Â·  4Comments  Â·  Source: python-telegram-bot/python-telegram-bot

1900 # Issue I am facing

I need to send self-destructing photos in the chats. How should I do that?

question

Most helpful comment

Use JobQueue.run_once to delete the message after x seconds. Have a look at the wiki and this example.

All 4 comments

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_once to 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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HardcoreSwag picture HardcoreSwag  Â·  3Comments

YHporkar picture YHporkar  Â·  3Comments

marekyggdrasil picture marekyggdrasil  Â·  5Comments

rspadim picture rspadim  Â·  5Comments

mhipo1364 picture mhipo1364  Â·  5Comments