{"id":16095662,"url":"https://github.com/rigwild/telegram-history-clean-bot","last_synced_at":"2025-04-05T20:14:26.304Z","repository":{"id":115713389,"uuid":"423192288","full_name":"rigwild/telegram-history-clean-bot","owner":"rigwild","description":"Automatically clear old Telegram messages","archived":false,"fork":false,"pushed_at":"2021-11-03T23:32:01.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T19:50:11.639Z","etag":null,"topics":["telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rigwild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-10-31T15:55:36.000Z","updated_at":"2022-03-06T17:23:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aaf2cf5-7f06-43df-a4f9-e51026637d83","html_url":"https://github.com/rigwild/telegram-history-clean-bot","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"fb9cf66eb26437b0e26fecb7d1b1cf66a4bda904"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigwild%2Ftelegram-history-clean-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigwild%2Ftelegram-history-clean-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigwild%2Ftelegram-history-clean-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigwild%2Ftelegram-history-clean-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rigwild","download_url":"https://codeload.github.com/rigwild/telegram-history-clean-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"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":["telegram-bot"],"created_at":"2024-10-09T17:07:34.100Z","updated_at":"2025-04-05T20:14:26.278Z","avatar_url":"https://github.com/rigwild.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram history clean bot\n\nTelegram does not offer a bulk message delete for groups. This bot will delete messages after some time.\n\n## Install\n\n```sh\npnpm install\n```\n\n## Build\n\n```sh\npnpm build\n```\n\n## Run\n\nYou can pass the time as a [ms](https://github.com/vercel/ms) string.\n\n**Note:** A bot can't delete a message that is older than 48 hours.\n\n```sh\nTG_TOKEN=\u003ctelegram_token\u003e DELETE_AFTER_TIME=30h DELETE_AFTER_MESSAGES_COUNT=3500 node dist/index.js\n```\n\nUsing [PM2](https://pm2.keymetrics.io/).\n\n```sh\nTG_TOKEN=\u003ctelegram_token\u003e \\\nDELETE_AFTER_TIME=30h \\\nDELETE_AFTER_MESSAGES_COUNT=3500 \\\nDELETE_AFTER=30h \\\nNODE_ENV=production \\\npm2 start --max-memory-restart 150M --time --name \"telegram-history-clean-bot\" dist/index.js\n```\n\n## License\n\n[The MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigwild%2Ftelegram-history-clean-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frigwild%2Ftelegram-history-clean-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigwild%2Ftelegram-history-clean-bot/lists"}