Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak

Telegram bot for automating the resale of Telegram groups

Telegram bot for automating the resale of Telegram groups

A system of two parallel working bots — a sales bot and a support bot. Written in Python with aiogram 3.x, Telethon, and async SQLite. Fully asynchronous architecture, both bots are launched in one process via asyncio.gather.

Sales bot. The buyer browses the catalog of groups with pagination, each group is displayed with its name and age since creation. The user selects a group by number, the request is saved in the database without notifications. The administrator opens the queue of requests upon request — sees the buyer's data and buttons to confirm or decline. Upon confirmation, the Telethon account automatically adds the buyer to the group, grants them full administrator rights, and deletes the chat history of the account in that group.

Support bot. A separate bot with its own token, works in parallel. A live chat is implemented between the buyer and the administrator via relay: messages from both sides are forwarded with inline buttons to reply, the dialogue continues until the buyer presses the end conversation button on the reply keyboard.

Integration with Telethon. Sessions are stored in files, each account is assigned a random device model and application version. Automatic migration of accounts from data.json is implemented upon first launch. If the session is already authorized — the account is added without a code request.

Gift mechanism. The user can transfer rights to an external group to the Telethon account. The bot detects the transfer through the UpdateChannelParticipant event and automatically adds the group to the catalog for sale.

Stack: Python 3.10+, aiogram 3.7, Telethon 1.34, aiosqlite, python-dotenv.
Work details
Added 14 March
113 views
Freelancer
Heorhii Zhukov
Ukraine Kyiv  24  0

Available for hire Available for hire
24 Safes completed
On the service 9 months 26 days