Telegram bot
Project Description
It is necessary to develop a Telegram bot that sells access to private Telegram channels through Stripe and automatically grants access after payment.
The bot must:
show a subscription menu
accept payments through Stripe
automatically activate access after successful payment
issue invitations to closed Telegram channels
check subscription status
work reliably on the server 24/7
The system must be resilient to crashes and automatically recover after a server restart.
Bot Functionality
1. Telegram Interface
The bot should have a simple menu:
Main Menu
Buy Subscription
My Access
Get Invitation
Support
Purchase Section
Subscription Plans (example):
7 days
1 month
2 months
3 months
When selecting a tariff:
the bot creates a Stripe payment page
the user makes a payment
after payment, access is activated automatically
Payment
Stripe Checkout is used.
Requirements:
The bot creates a Stripe Checkout Session via API
The following are passed to the Checkout Session:
telegram_user_id
subscription plan
After payment, Stripe sends a webhook
Webhook:
verifies the Stripe signature
activates or extends user access
After successful payment, the user should not manually enter any codes or session_id.
Access Management
After payment, the bot must:
Check the user's subscription
Activate access
Issue an invitation to the required Telegram channel
Access must:
be automatically extended upon repeated payment
have an expiration date
be checked with each attempt to obtain an invite
Abuse Protection
It is necessary to provide for:
webhook protection (Stripe signature verification)
protection against duplicate payment processing (idempotency)
protection against passing invitations to other people
limited or temporary invite links
Database
A storage structure is needed:
users
telegram_user_id
created_at
subscriptions
telegram_user_id
expires_at
plan
status
payments
stripe_session_id
amount
currency
status
created_at
processed_events
stripe_event_id
Database:
PostgreSQL (preferred)
Infrastructure
The system must include:
Telegram bot
Stripe webhook service
Database
Nginx (reverse proxy)
HTTPS domain
Reliability
The system must:
operate 24/7
automatically restart upon failure
have proper logging
not lose data upon restart
Use:
systemd for services
restart policy
logging
Admin Functions
It is desirable to add:
user check command
view active subscriptions
manual access granting
Developer Requirements
Experience is required:
Telegram Bot API
Stripe Checkout + Webhooks
Python / Node.js
PostgreSQL
deployment on VPS
working with Nginx and HTTPS
Work Result
The finished system must:
Allow the user to pay for a subscription through Stripe
Automatically activate access
Issue an invitation to a Telegram channel
Show subscription status
Work reliably on the server
Additionally
It is important to design the architecture so that:
the system can be easily transferred to another server
the number of channels and tariffs can be scaled
the bot remains stable with a large number of users
-
Hello.
I have been developing Telegram bots for over 3 years. The main stack is Python (aiogram v3.x), PostgreSQL, and integrations with payment systems, including Stripe.
I have already implemented bots with a similar architecture:
— Telegram bot with subscriptions
— Stripe Checkout + Webhooks
— automatic access activation
— issuing invites to private channels
… — storing subscriptions and payments in PostgreSQL
For the architecture, I propose to implement the system as follows:
• Telegram bot (aiogram v3) — user interface
• Stripe Checkout — creating a payment page
• Webhook service — processing Stripe events
• PostgreSQL — storing users, subscriptions, and payments
• Nginx + HTTPS — secure processing of webhooks
After payment, Stripe sends a webhook that:
1. verifies the Stripe signature
2. checks that the event has not been processed yet (protection against reprocessing)
3. activates or extends the user's subscription
4. saves payment information in the database
After this, the user can receive an invitation to a closed Telegram channel through the bot.
To protect against access being shared with others, a mechanism of one-time or limited invite-links can be used, which:
— are generated by the bot through the Telegram API
— have a limit on the number of uses
— can have a lifespan
— are issued only to users with an active subscription
Before issuing the link, the bot checks:
• the presence of an active subscription
• the expiration date of access
• the user's status
It is also possible to implement:
— a "My Access" section to check subscription status
— logging of payments and user actions
— admin commands to check the user and manually grant access
The architecture will be designed so that:
• the system can be easily transferred to another server
• new channels and rates can be added
• the bot operates stably with a large number of users
I am ready to discuss the project details and propose an optimal architecture.
Thank you.
-
267 Hello! The task is clear; I have implemented similar logic for paid subscriptions multiple times. I suggest writing in Python (aiogram 3 for the bot itself and FastAPI for quick and reliable processing of Stripe webhooks), and we will use PostgreSQL for the database, as you requested. All critical security aspects are taken into account: we will validate webhook signatures using the official Stripe library, and checking by stripe_event_id in the database will prevent duplicate payments. To ensure that people do not forward invites to friends, the bot will generate unique one-time links strictly for the specific paying user. I will also implement a background check: as soon as the subscription period expires, the bot will automatically kick the person out of the private channel if there has been no renewal. Regarding the server infrastructure, I will set everything up properly: I will configure Nginx as a reverse proxy, attach an SSL certificate, and set up the bot and webhook service as systemd services with auto-restart, so it works 24/7 and restarts automatically after the virtual machine reboots. I will design the architecture to be modular, so adding new channels, changing rates, or moving everything to another server in the future will not be difficult. I will also add admin commands for manual access granting and user verification. I am ready to discuss the details and start working, feel free to write!
-
1267 35 1 Hello. There is a similar bot, but I wrote it in PHP for a private channel. There is a payment system, and I have experience working with Stripe. A database is not used, but connecting it is not a problem. Feel free to reach out.
-
1212 7 0 Good day!
I have experience in developing Telegram bots, working with Stripe API, webhook services, and building backend on Node.js using PostgreSQL. I also have experience deploying services on VPS with Nginx, HTTPS, and configuring stable operation through systemd.
I will be able to implement a bot with payment through Stripe, automatic subscription activation, issuing invite links to private channels, access verification, and webhook protection. I will make the architecture scalable and stable for 24/7 operation.
I would be happy to discuss the project details.
-
1588 9 0 Hello! I am interested in your project. I have extensive experience in developing Telegram bots using Python (aiogram), working with PostgreSQL, and setting up servers, so your specifications are completely clear to me and align with my tech stack.
How I will implement the key requirements:
Stripe and Webhooks: I will set up integration with Stripe Checkout. I will definitely implement signature verification for webhooks and idempotency (through the processed_events table) to completely eliminate double processing of payments.
Access Management: To protect against the sharing of invitations with third parties, the bot will generate unique one-time invite links. I will also implement a background process that will check expires_at daily and automatically remove users whose subscriptions have expired.
Database: I will design a relational database on PostgreSQL exactly according to your structure (users, subscriptions, payments, events).
Deployment (VPS) and Reliability: I will set up your server "turnkey" — I will launch Nginx as a reverse proxy, bind an SSL certificate for secure webhook operation, and create a systemd service for the bot to run 24/7 (with automatic restart in case of failures).
Admin Panel: I will add the necessary commands to check user statuses and manually grant/revoke access.
The code architecture will be modular, allowing you to easily scale the project (add new channels or rates) in the future.
… I am ready to discuss the project in more detail and start working. Please write to me in private messages!
-
417 2 0 -
4575 50 1 Good day.
I am a Python developer and can implement a Telegram bot for selling access to private channels with automatic subscription activation after payment through Stripe.
For the implementation of the project, I plan to use the following stack:
• Python
• aiogram (Telegram Bot API)
• FastAPI for the webhook service
… • Stripe Checkout + Webhooks
• PostgreSQL for storing users, subscriptions, and payments
• Nginx as a reverse proxy + HTTPS
• systemd for stable operation of services and automatic restart
Architecture of the solution:
1. The Telegram bot processes user commands and shows the subscription menu.
2. When selecting a plan, the bot creates a Stripe Checkout Session via the API and passes the telegram_user_id and selected plan to it.
3. After payment, Stripe sends a webhook to the server.
4. The webhook verifies the Stripe signature, records the payment in the database, and activates or extends the user's subscription.
5. After activation, the bot automatically provides the user with a temporary invitation link to the closed Telegram channel.
6. The bot stores the subscription end date and checks it with each access request.
To protect the system, the following will be implemented:
• verification of the Stripe webhook signature
• protection against duplicate event processing (idempotency)
• storage of processed_events
• temporary or limited invite links
• logging of all operations
Additionally, the following can be implemented:
• admin commands for checking users and subscriptions
• viewing active subscriptions
• manual access granting
• support for multiple channels and plans
The system will be deployed on a VPS using Nginx, HTTPS, and systemd, which will ensure stable operation 24/7 and automatic restart of services in case of failure.
Development time: approximately 7-10 days.
I would be happy to discuss the project details and get started.
-
93984 1263 1 10 Hello. I have extensive experience in developing bots on Node.js. I am ready for collaboration.
Current freelance projects in the category Bot Development
Development of a Telegram bot according to the specifications
609 USD
It is necessary to develop a Telegram bot according to the specifications:https://docs.google.com/document/d/1ysaZuOs53k6E8ny8QoNgUofpqCJ9b6MjfC3v-F7lw50/edit?usp=sharingThe estimated budget for the project is defined in the specifications.Please familiarize yourself with the… Bot Development ∙ 5 hours 26 minutes back ∙ 40 proposals |
Telegram Bot RPGHello, dear programmers! I am looking for a developer to create a Telegram project in the format of a text-based role-playing game (RPG) in the Eurovision universe (similar to text-based role-playing Club Romance). Please read the concept step by step and give your feedback on… Gaming Apps, Bot Development ∙ 1 day 1 hour back ∙ 61 proposals |
Technical Specification for Refinement of AI Bot for Generating Personalized SongsTECHNICAL TASK FOR IMPROVING THE AI PERSONAL SONG GENERATOR BOTMAIN GOAL Create a stable premium product that: generates the highest quality personal songs; does not fabricate facts about the client; works stably under load; is easily scalable; allows for analysis and… Python, Bot Development ∙ 1 day 1 hour back ∙ 30 proposals |
A bot needs to be created in Telegram for subscription payment.
45 USD
A bot needs to be created in Telegram where users can subscribe for access to the webcams located in the yard. Organize payment for two types of subscriptions (monthly and daily) in the bot. The bot should automatically check the payment and then provide access links. Python, Bot Development ∙ 1 day 18 hours back ∙ 78 proposals |
Development of an AI consultant for a work visa verification website (WordPress)Development of an AI Consultant for a Work Visa Check Website (WordPress) About the Project An English-language website is being developed for the preliminary check of eligibility for a work visa in Israel. An AI consultant in the format of an online chat is needed to assist… AI & Machine Learning, Bot Development ∙ 2 days back ∙ 35 proposals |