Telegram Channel Ban & Unban Bot

Customer: AI | Published: 08.01.2026

I run a Telegram channel with 50 000+ subscribers and I need two very focused automation routines: • Routine 1 – the moment I promote the bot to administrator it must automatically ban every single current subscriber in the channel (this is a true mass-ban, no filters or criteria—literally everyone). • Routine 2 – once the ban cycle finishes, the same code (or a companion bot, your choice) should immediately clear the “Removed Users” list so the channel is ready for fresh members again. This must work in a channel context only; no group logic is necessary. A single “deploy and forget” approach is ideal: I add the bot, it performs both tasks in sequence without further commands. Deliverables: 1. Complete, well-commented source (Python with Telethon/Pyrogram, Node with grammY, or any stable stack you prefer). 2. Short README explaining setup, required bot permissions, and how to trigger or schedule the routines. 3. Proof that the script can handle a live channel of 50 k+ users without running into Telegram rate limits (simple log or screen-capture is fine). If you have experience bypassing large-scale API throttling in Telegram channels, this should be straightforward. Looking forward to a clean, efficient solution.