HUB
Sign inSign up

laury/telegram-api-cleaner

By laury

•Updated almost 7 years ago

Clear messages from the Telegram API

Image
0

382

laury/telegram-api-cleaner repository overview

⁠Telegram API Cleaner

This is a simple script to clear messages from the Telegram API. But, since its not possible to completely delete those, this software just marks messages as "confirmed", which makes them not appear on the default API responses. It also deletes any webhook associated with the bot to ensure that no old messages will get delivered that way either.

⁠How to use

Install Docker⁠ and run the following:

docker run --env TELEGRAM_TOKEN=<your_token> laury/telegram-api-cleaner:latest

⁠Development

To develop locally, I recommend building a local image and running it with a volume mounted to get code changes.

docker build -t telegram-api-cleaner:dev .

docker run -it --env-file .env -v ${PWD}:/app telegram-api-cleaner:dev bash
Tag summary
Recent tags
Content type
Image
Digest
Size
343.5 MB
Last updated
almost 7 years ago
docker pull laury/telegram-api-cleaner:latest