To use:
- Invite @DelHistoryBot to your group chat
- Promote @DelHistoryBot to be group admin
- Enable timer by /destroytimer
To build your own bot:
- Clone the source code
- Apply for a telegram bot from Bot Father, get the token
- Disable privacy mode using /setprivacy -> Disable
- Set up a mongodb (to store the message ids pending to be deleted), (e.g. Mongodb Atlas)
- Replace the tokens with your own in the main.py
- Set up a hosting machine (e.g. Google App Engine), and deploy the code to the cloud service.