{"id":13617957,"url":"https://github.com/gurland/telegram-delete-all-messages","last_synced_at":"2025-04-14T10:30:47.969Z","repository":{"id":37705814,"uuid":"187646151","full_name":"gurland/telegram-delete-all-messages","owner":"gurland","description":"Delete all your messages in groups / supergroups using this python script","archived":false,"fork":false,"pushed_at":"2024-07-23T19:14:04.000Z","size":42,"stargazers_count":373,"open_issues_count":20,"forks_count":90,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-08T03:36:23.155Z","etag":null,"topics":["cli","privacy","python-script","telegram"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gurland.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":"2019-05-20T13:29:44.000Z","updated_at":"2024-11-07T20:35:00.000Z","dependencies_parsed_at":"2024-08-01T20:56:48.925Z","dependency_job_id":null,"html_url":"https://github.com/gurland/telegram-delete-all-messages","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurland%2Ftelegram-delete-all-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurland%2Ftelegram-delete-all-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurland%2Ftelegram-delete-all-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurland%2Ftelegram-delete-all-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gurland","download_url":"https://codeload.github.com/gurland/telegram-delete-all-messages/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248862563,"owners_count":21173830,"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":["cli","privacy","python-script","telegram"],"created_at":"2024-08-01T20:01:51.480Z","updated_at":"2025-04-14T10:30:47.702Z","avatar_url":"https://github.com/gurland.png","language":"Python","funding_links":[],"categories":["Python","Fun"],"sub_categories":["RFID"],"readme":"# telegram-delete-all-messages\nDelete all your messages in supergroups with python script.\n\n## Installation\nTo install this script you have to download project and install requirements:\n\n### Linux\n```\ngit clone https://github.com/gurland/telegram-delete-all-messages\ncd telegram-delete-all-messages\npip install -r requirements.txt\npython cleaner.py\n```\n\n### Windows\n- Download zip file from this repo and unpack it\n- Install latest [CPython 3](https://www.python.org) version\n- Run install.bat\n- Run start.bat\n\n## Obtain standalone telegram app API credentials\n- Login to https://my.telegram.org/\n- Select `API development tools` link\n- Create standalone application\n- Copy app_id and app_hash\n\n## Usage\n\u003e You need both App api_id and App api_hash to use script.\n\n#### Environment variables\nYou could set API_ID and API_HASH environment variables to prevent entering API credentials manually.\n\n#### Start\nAfter starting script you will be prompted:\n- To enter your Telegram APP credentials (if no environment variables found)\n- Your account phone and then code sent to you by Telegram\n```\n$ python cleaner.py\n\nEnter your Telegram API id: 123456\nEnter your Telegram API hash: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\nPyrogram v0.14.1, Copyright (C) 2017-2019 Dan \u003chttps://github.com/delivrance\u003e\nLicensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)\n\nEnter phone number: +123456789012\nIs \"+123456789012\" correct? (y/n): y\nEnter phone code: 88988\nLogged in successfully as Stanislav\n```\n\n#### Choosing supergroup\n- After providing needed information you will get your supergroup dialogs\n- Enter number found near desired supergroup title\n```\n1. Python community\n2. Rust Beginners\n3. IDE \u0026 Editors\n\nInsert group number:\n```\n\n#### Message removal process\n- After choosing supergroup you would get informed about messages removal process\n```\nInsert group number: 2\nSelected Rust Beginners\n\nSearching messages. OFFSET: 0\nFound 4 your messages in selected supergroup\nDeleting 4 messages with next message IDs:\n[23807, 23799, 23757, 23756]\n```\n\n## Contribution\nTo make any changes in our codebase, please do the following:\n1. Create or find an Issue describing what needs to be done.\n2. Discuss all changes needed.\n3. Fork repository, clone it, create branch with briefly descriptive name of feature/bufix you are adding, e.g. `git checkout -b fix-sleep-treshold`.\n4. Create Pull Request. Please, test all changes before creating PR and explicitly declare whether testing was succesful or not.\n5. Wait untill available contributors review changes.\n6. If everything is OK your contribution gets approved.\n\nNote: it's very important to keep PRs brief and clear. Resolve single issue by a single PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurland%2Ftelegram-delete-all-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgurland%2Ftelegram-delete-all-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurland%2Ftelegram-delete-all-messages/lists"}