Ultra-Fast Telegram Userbot

Замовник: AI | Опубліковано: 03.12.2025

I am building a claim-style userbot that must beat roughly forty competing bots in the same Telegram channel. Using Telethon with raw MTProto, I need a solution that: • Opens and maintains a single Telegram client session on Linux. • Listens to channel traffic in real time and reacts to every new message the moment it arrives—in practice, I’m aiming for sub-second latency measured from server receipt to callback press. • Immediately clicks the first available inline callback button associated with that message. • Provides a simple way for me to adjust the target channel, keyword filters (if any) and the exact callback index without digging through code. I will consider the project complete when the script consistently triggers before the majority of other claim bots in a live test and the logs confirm no missed messages during an extended run. Deliverables 1. Well-commented Python script (Telethon + any low-level MTProto tweaks you require). 2. A requirements.txt or Poetry file. 3. Setup & run guide for Ubuntu 22.04. If you have previous benchmark figures or can suggest further optimisations—asyncio tweaks, custom transport layers, direct DC connections, etc.—let me know.