Discuss a project
Menu ☰
FUNNEL · INSTAGRAM + TELEGRAM

Instagram → Telegram funnel: from a comment to the bot

A person writes a keyword under a video, gets a direct message, confirms they follow and collects the material in the Telegram bot. The bot also takes orders. Everything is configured in the admin panel without a programmer.

InstagramTelegram botAdmin panelRequests
4 stepsfrom comment to material
1 admin panelcampaigns, clients, orders, requests
{name}variables in message texts
CSVexport of clients and applications
THE TASK

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.

HOW IT WORKS

User journey

1

Comment

A person writes a keyword under a video, and the bot replies under the comment with a random phrase from a set.

2

Direct message

The bot sends a direct message asking the person to follow, with a profile button.

3

Follow check

The person taps “I've followed” and the system checks the follow.

4

Telegram bot

Gets the materials for the video: messages, videos and files, link buttons.

FEATURES

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.

SECURITY

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.