What needed solving
Turn comments under videos into followers and leads automatically, without replying to everyone by hand, and know who came from which video.
User journey
Comment
A person writes a keyword under a video, and the bot replies under the comment with a random phrase from a set.
Direct message
The bot sends a direct message asking the person to follow, with a profile button.
Follow check
The person taps “I've followed” and the system checks the follow.
Telegram bot
Gets the materials for the video: messages, videos and files, link buttons.
What the system can do
Campaigns per video
Each video has its own keywords, texts, set of messages and files.
Preview
A campaign can be tested in the admin panel before launch.
Texts and variables
All bot and DM messages are edited in the admin panel, with variables like {name} and shared links.
General guide
For people who arrived without a campaign: a step-by-step “Do it yourself” guide with a “Next” button.
Ordering a video in the bot
A mini form: video type, idea, length, format, deadline, contact, confirmation. The order goes into the admin panel.
Training
A button with a referral link to training; the link is edited in one place.
Clients
Instagram profile ↔ Telegram account matching and CSV export.
Website requests
The website form saves requests to the same admin panel and sends a notification to Telegram.
Data deletion
A person can delete their own data with a command in the bot.
What security measures are in place
Webhook signatures
Instagram events are accepted only with a valid Meta app signature, using constant-time comparison.
Admin panel
Password stored as a bcrypt hash, protection against request forgery (CSRF tokens), login lockout after failed attempts based on the visitor's real address.
Website form protection
A hidden honeypot for bots and a request limit: 5 per 10 minutes from one address.
Secrets
Instagram and Telegram tokens are never written to logs or kept in code. The Instagram token is renewed in advance.
Uploads and input
Only images can be uploaded, with content and size checks. Form text is sanitized and links are validated.
Headers and limits
HTTPS with an automatic certificate, security headers and a request size limit.
Backups
Daily database backups: 7 local copies plus one in the cloud, restore tested.
Security audit
An audit was carried out: vulnerabilities found were fixed, dependencies updated, tests pass.
Where it runs
This funnel runs in the same admin panel as this website.