Budget: 20000 UAH Deadline: 8 days
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!