Telegram bot for selling digital content

Bot Development 34 USD
Job 2 of 9
Task
The client needed a simple and reliable Telegram bot for selling videos individually: the user clicks the purchase button, pays with a card (Visa/MasterCard), and instantly receives the video file directly in the chat — without links, without a personal account, without subscriptions, and unnecessary logic. The key requirement was easy scalability: for each new video, a button simply needed to be added.

Solution
A Telegram bot was implemented in Python (aiogram 3) with Stripe integration for card payment processing:
— The video catalog was implemented through configuration (product structure → price → file), allowing new videos to be added without changing the bot's code
— Payment through Stripe Payment Intents API — the user enters card details directly in the Telegram interface (Stripe Checkout / Payment Link), without redirects to third-party forms
— A webhook handler on the server side confirms successful payment from Stripe and triggers automatic delivery
— The video is sent to the buyer directly as a file through the Telegram Bot API (send_video), with handling of Telegram's file size limitations
— Idempotent payment processing — protection against resending the video in case of duplicate webhook events from Stripe

Technical Stack
Python, aiogram 3, Stripe API (Payment Intents, Webhooks), FastAPI (webhook endpoint)

My Role
Full cycle: architecture, payment system integration, webhook processing, content delivery, testing payment scenarios (success/failure/duplicate).

Result
The client received a working bot with a fully automated "payment → delivery" cycle without manual intervention, with the ability to independently add new products without involving a developer.
Details
  • Added:
44

Freelancer

  • Projects 10
  • Rating 5.0
  • Rating 1 892
Register

If you have an account, log in

Indicators