{"id":16010730,"url":"https://github.com/quasiyoke/comrade-colonel-bot","last_synced_at":"2026-04-19T22:08:57.012Z","repository":{"id":145631482,"uuid":"142493867","full_name":"quasiyoke/comrade-colonel-bot","owner":"quasiyoke","description":"Telegram bot removing group chat messages after specified period of time","archived":false,"fork":false,"pushed_at":"2020-01-20T12:55:48.000Z","size":180,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T03:09:17.546Z","etag":null,"topics":["chatbot","privacy","telegram"],"latest_commit_sha":null,"homepage":"https://t.me/ComradeColonelBot","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quasiyoke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-26T21:03:44.000Z","updated_at":"2021-04-25T07:40:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0bbeeff4-ada1-4022-8f95-54bf1c5f9a13","html_url":"https://github.com/quasiyoke/comrade-colonel-bot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasiyoke%2Fcomrade-colonel-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasiyoke%2Fcomrade-colonel-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasiyoke%2Fcomrade-colonel-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quasiyoke%2Fcomrade-colonel-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quasiyoke","download_url":"https://codeload.github.com/quasiyoke/comrade-colonel-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243043385,"owners_count":20226811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","privacy","telegram"],"created_at":"2024-10-08T13:20:50.272Z","updated_at":"2025-12-24T22:21:50.500Z","avatar_url":"https://github.com/quasiyoke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Comrade Colonel Bot\n\n[![Build Status](https://travis-ci.com/quasiyoke/comrade-colonel-bot.svg?branch=master)](https://travis-ci.com/quasiyoke/comrade-colonel-bot)\n\nTelegram bot removing group chat messages after specified period of time.\n\nTo try it quickly, run:\n\n```sh\nexport TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11\nexport STORAGE_PATH=/var/lib/comrade-colonel-bot/db.sqlite3\nexport MESSAGE_LIFETIME=5s\nexport DELETION_PERIOD=1s\ncargo run\n```\n\nDon't forget to specify your actual Telegram bot token (you're able to get one from `@BotFather`). The bot will be configured to delete all messages he has evidenced after 5 seconds. [Maximal possible](https://core.telegram.org/bots/api#deletemessage) manageable chat message lifetime is 48 hours (172800 seconds).\n\n## Deployment\n\n1. Install [Docker Compose](https://docs.docker.com/compose/install/),\n\n1. Create a file with Telegram bot token to put it into Docker Secrets' store:\n\n   ```sh\n   echo -n '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11' \u003e ./telegram-bot-token\n   ```\n\n1. Fetch bot's deployment configuration file and run the bot:\n\n   ```sh\n   wget https://raw.githubusercontent.com/quasiyoke/comrade-colonel-bot/master/docker-compose.yml\n   docker-compose up\n   ```\n\n   Default configuration assumes chat messages lifetime of 42 hours.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasiyoke%2Fcomrade-colonel-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasiyoke%2Fcomrade-colonel-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasiyoke%2Fcomrade-colonel-bot/lists"}