Telegram bot for automatic sale of Telegram stars/premium
The bot automates the sale of Telegram stars and Telegram Premium subscriptions. The user selects the product, specifies the recipient, pays via card, and sends a screenshot of the confirmation. The administrator receives a notification, checks the payment, and with one click confirms or rejects the order — after which the bot automatically delivers the product via an external API.
Stack: Python, aiogram 3, aiosqlite, aiohttp
Implemented functionality:
Onboarding a new user: language selection (RU/EN/UK), acceptance of the agreement, currency selection (USD/UAH/EUR). Upon repeated launches, the setup is not shown again.
Purchase of stars: the user enters the quantity (from 50 to 1,000,000), specifies the recipient's username, and receives the amount to be paid in their currency with the current exchange rate. After payment, they send a screenshot — the order goes for verification to the administrator.
Purchase of Telegram Premium: selection of the term (3/6/12 months) with fixed prices, similar payment flow.
Administrator panel: viewing all users with pagination, mass mailing, managing the price directly from the chat, confirming and rejecting orders with profit displayed for each.
Product delivery: after confirmation, the bot sends the order to the Wizard API, updates the user's statistics, and offers to leave a review. The review is published in a separate channel.
Multi-currency: exchange rates for USD/UAH/EUR are pulled from an external API with caching for one hour, fallback to fixed values when unavailable.
Stack: Python, aiogram 3, aiosqlite, aiohttp
Implemented functionality:
Onboarding a new user: language selection (RU/EN/UK), acceptance of the agreement, currency selection (USD/UAH/EUR). Upon repeated launches, the setup is not shown again.
Purchase of stars: the user enters the quantity (from 50 to 1,000,000), specifies the recipient's username, and receives the amount to be paid in their currency with the current exchange rate. After payment, they send a screenshot — the order goes for verification to the administrator.
Purchase of Telegram Premium: selection of the term (3/6/12 months) with fixed prices, similar payment flow.
Administrator panel: viewing all users with pagination, mass mailing, managing the price directly from the chat, confirming and rejecting orders with profit displayed for each.
Product delivery: after confirmation, the bot sends the order to the Wizard API, updates the user's statistics, and offers to leave a review. The review is published in a separate channel.
Multi-currency: exchange rates for USD/UAH/EUR are pulled from an external API with caching for one hour, fallback to fixed values when unavailable.