Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

telegram-channels-cleaner

Latest version: v2.0.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: asteroid_den
11 Versions
1.1K Downloads

Scan summary

telegram-channels-cleaner was last scanned on 29 Nov 2026 at version 2.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 2.0.0.
  • Downloads: 1,050 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.0.0 LATEST 29 Nov 2026 No rules fired
1.7.0 21 Nov 2026 No rules fired
1.6.0 20 Nov 2026 No rules fired
1.5.0 20 Nov 2026 Not shown
1.4.2 20 Nov 2026 Not shown

No rules fired in 2.0.0

Findings

Findings for v2.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Channels Cleaner

CI PyPI License: MIT

Go through every Telegram channel you're subscribed to, one card at a time, and get rid of the ones you stopped reading years ago. Swipe left to leave, right to keep, or mute and archive. Nothing changes in Telegram until you've reviewed the whole batch.

It runs on your own computer: a small Python server (a Kurigram userbot + FastAPI) and a web UI that opens in your browser. No hosted service, no accounts. Prefer the couch? Let your phone in over the home Wi-Fi and go through the deck there.

What it does

  • One card per channel, with the numbers that matter: posts per week (or how long it's been silent), a 26-week activity chart, subscribers, unread count and a preview of the last post. The card takes its colour from the channel's avatar.
  • Five verdicts: unsubscribe, keep, mute, archive or "later" (back of the deck). Swipe the card, click either side of it or use the keyboard.
  • Two orders: dead channels first (never posted, then longest silence) or most unread first, each reversible.
  • The progress bar is your history. Every decision lands in it in order, coloured by verdict. Hover it to see a magnified strip of avatars, click to go back to any decision and change it, or step through them with Ctrl+←/→.
  • Nothing happens until you confirm. Unsubscribe, mute and archive are queued. The review screen groups them, flags private channels you can't rejoin without an invite, then applies them one by one with pauses, handling Telegram's flood waits.
  • Changed your mind later? Turn an applied mute or archive into "keep" and the next run unmutes or unarchives the channel.
  • Results and export: what's left of your subscriptions by last post, plus a CSV/JSON list of what you left, with t.me links for the public ones.
  • Several accounts: add another Telegram account from the account menu and switch between them; each keeps its own chats, decisions and session.
  • On your phone, too: scan a QR code, confirm the same code on the computer, and the phone gets the deck laid out for a small screen. The Telegram session never leaves the computer.
  • QR or phone login with two-step verification, English and Russian, dark and light themes.
Deck (light theme) History loupe
Review Applying
A chat you own: who gets it Ctrl+K: find a chat
Letting a phone in The deck on a phone, and pairing

Quick start

You need Python 3.12+ and either uv or pipx. The package includes the built UI, so no Node.js is required.

uvx telegram-channels-cleaner

or install it once and run it whenever you like:

pipx install telegram-channels-cleaner
telegram-channels-cleaner

A browser tab opens at http://127.0.0.1:8765. On your phone, open Telegram → Settings → Devices → Link Desktop Device and scan the QR code. You can also log in with a phone number and code; a two-step verification password is asked for when it's set.

Try it without a Telegram account

Mock mode replaces Telegram with 120 generated channels:

uvx telegram-channels-cleaner --mock

The QR code "scans" itself after a few seconds. The phone code is 12345; with CC_MOCK_2FA=1 the 2FA password is mock, which is also the one a transfer of ownership asks for. The screenshots above are from mock mode.

Docker
docker run --rm -p 127.0.0.1:8765:8765 -v telegram-channels-cleaner:/data \
  ghcr.io/asteroid-den/telegram-channels-cleaner:latest

Then open http://127.0.0.1:8765. Or from a checkout: docker compose up -d. Keep the 127.0.0.1: part of the port mapping: the UI has no password, and whoever can open it can act on your Telegram account.

The image has a health check (docker ps shows healthy once the app answers). It looks at CC_PORT, so change the port with that variable rather than a --port flag.

From source
git clone https://github.com/asteroid-den/telegram-channels-cleaner.git
cd telegram-channels-cleaner
npm --prefix frontend ci && npm --prefix frontend run build   # Node.js 22.18+
uv run telegram-channels-cleaner

On your phone

The app still runs on the computer; a phone on the same Wi-Fi becomes a second screen for it.

  1. In the account menu, choose Open on your phone and turn on Let devices in from this network. The app starts answering at the computer's address in the network as well, for instance http://192.168.1.23:8765, and the console prints it.
  2. Scan the QR code with the phone's camera. Or open that address on the phone and type in the eight characters shown under the QR code: the phone goes on by itself once they're in.
  3. The phone shows a four-digit code, and so does the computer. If they match, press Connect on the computer.

That phone stays connected: next time open the address, scan the QR code in the list of connected devices, or put the app on the home screen. Cards and decisions are shared, so you can start on one screen and carry on on the other. The same window lists the connected devices, renames them and disconnects them, at once.

On the phone the card fills the screen and the keys become buttons: leave, later, mute, archive, keep. Undo is the small button by the progress bar, the magnifier in the header finds a chat, and a long press on the progress bar opens the history loupe (slide through it, tap a chat to go back to it).

Good to know:

  • Use it at home, not on public Wi-Fi. Other devices in a café or hotel network can see that the app is there, even though they can't get in.
  • The QR code goes through a small page on GitHub Pages (docs/pair), because phone cameras open a scanned link only when it has a domain, not a bare IP. The page just sends the phone on to the computer's address, which sits after the # in the link: browsers never send that part to the server, so GitHub sees neither the address nor the one-time code. Without internet on the phone, open the address and enter the code instead. CC_PAIRING_PAGE= (empty) puts the plain link in the QR code.
  • If the computer gets another address from the router, the phone has to be connected again. Giving the computer a fixed address in the router's settings avoids it.
  • Turning access off closes the door at once; connected devices stay on the list and come back in when it's turned on again.
  • "Add to Home screen" gives the app its own icon. Over plain http the phone opens it in the browser rather than as a separate app.
  • Not available in Docker or with --host other than localhost: the app already listens beyond the computer there, so the toggle is off. Keep those setups on 127.0.0.1.

Keyboard

Key Action
← / → Unsubscribe / keep (← on a chat you own asks who gets it)
↓ Later: move to the back of the deck
M / A Mute / archive
L Free the public link (chats you own)
O Open the chat in the Telegram app, at its last post (also the ↗ on the card)
Ctrl+Z or Backspace Undo the last decision
Ctrl+← / → Step back / forward through decisions you've made
Ctrl+K Find a chat by name and put it on top
Enter Go to the review
Ctrl+Enter Apply (on the review screen)
Esc Back to the deck

Letter keys work on any keyboard layout. On macOS, Cmd works in place of Ctrl.

Privacy and safety

Read this before logging in with your real account.

  • The session file is your Telegram account. Anyone who copies it can read your messages and act as you, without your password or 2FA. It lives in the data directory below, which the app keeps readable only by your user (on Linux and macOS). Don't sync it to the cloud, don't share it.
  • Everything stays on your machine. The server listens on 127.0.0.1 only, talks to Telegram directly and nowhere else. There is no telemetry.
  • The UI has no password, because it's meant for one person on their own computer. Don't expose it to a network (--host 0.0.0.0) you don't fully control.
  • Phone access is off until you turn it on. Then the app also answers on the computer's network address, but only devices you connected get past the pairing screen: each holds a random key in a cookie (only its hash is stored), and a new one gets in only after you confirm its code on the computer. Pairing links and codes work once and for two minutes. Connected devices can't turn access on or off or connect others; that is done on the computer only.
  • Other websites can't use it. Listening on 127.0.0.1 doesn't stop a page open in your browser from sending requests to it. The app answers only requests addressed to localhost (against DNS rebinding) and takes changes only from its own page (against cross-site requests), so no site can queue or apply anything.
  • Log out and delete local data in the account menu ends the session on Telegram's side and wipes everything stored for that account. Ending the session from Telegram (Settings → Devices) also works; delete the data directory afterwards.
Where the data lives
How you run it Location
uvx / pipx on Linux ~/.local/share/telegram-channels-cleaner (or $XDG_DATA_HOME)
uvx / pipx on macOS ~/Library/Application Support/telegram-channels-cleaner
uvx / pipx on Windows %APPDATA%\telegram-channels-cleaner
From source ./data in the checkout
Docker the /data volume

The startup message prints the exact path. Inside:

  • sessions/*.session: one Telegram session per account (account.session for the first one).
  • sessions/*.device.json: the device profile each session presents to Telegram.
  • cleaner.sqlite3: the channel cache, your decisions and stats. Before an update changes its structure, the app copies it next to it (cleaner.sqlite3.before-<version>).
  • media/: cached avatars and post thumbnails.
  • logs/app.log: what the app logged, kept to four files of 1 MB. Worth attaching when you report a problem; it has chat ids and titles in it, but never the session.
About the API id and the device profile

Telegram identifies third-party clients by an api_id. Out of the box this app uses the public api_id of Telegram Desktop and, on first login, picks a plausible Telegram Desktop device profile (OS, app version, language) from device_profiles.json. The profile is stored with the session and never changes after that, so in Settings → Devices you'll see one ordinary desktop session rather than a new device on every start.

To be clear about what that means: the app presents itself as Telegram Desktop. Using an unofficial client is at your own risk under Telegram's Terms of Service, and Telegram can limit accounts it considers abusive. For a cleaner setup, register your own app at https://my.telegram.org/apps and set CC_API_ID and CC_API_HASH.

Pace

Reading is cheap: channel details and the last 100 post dates are fetched lazily, one card at a time, and cached for 72 hours. Actions run one after another with a random 1.5–3 s pause. If Telegram replies with a flood wait, the job sleeps for the time it was told to (the UI shows a countdown) and carries on. You can stop the job at any point; whatever wasn't applied stays queued.

Channels and supergroups you own or administer have a deck of their own (open the settings menu and pick "I run it"). Leaving a chat as an admin costs you your admin rights, so the review screen warns about it. Swiping left on a chat you created asks what to do with it: hand it over to one of its admins and leave, leave it without an owner, or delete it (Telegram deletes chats up to about 1000 members). A handover is confirmed with your 2FA password on the review screen.

Configuration

Everything is optional. Use environment variables or a .env file in the working directory (see .env.example).

CLI flag Env var Default
--host CC_HOST 127.0.0.1 Address to listen on
--port CC_PORT 8765 Port
--no-browser CC_NO_BROWSER=1 off Don't open a browser tab
--mock CC_MOCK=1 off Fake Telegram backend
CC_MOCK_CHANNELS 120 Number of generated channels
CC_MOCK_SUPERGROUPS 60 Number of generated supergroups
CC_MOCK_2FA=1 off Ask for a 2FA password in mock mode
CC_DATA_DIR see above Sessions, database, media cache, log
CC_API_ID, CC_API_HASH Telegram Desktop Your own Telegram API credentials
CC_APPLY_DELAY_MIN, CC_APPLY_DELAY_MAX 1.5, 3.0 Pause between actions, seconds
CC_FULL_INFO_TTL_HOURS 72 How long channel details stay cached
CC_PAIRING_PAGE GitHub Pages The page the phone pairing QR goes through; empty = the plain link
-v off Debug logging

Development

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases telegram-channels-cleaner

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229