Skip to content
reels-bot.tsx✕
// radovi/reels-bot · 2026 · automation

Reels bot

Send a photo to Telegram, pick a caption, get a finished Reel in the profile's style.

import { Python, aiogram (Telegram), Claude, faster-whisper, Playwright, FFmpeg, PostgreSQL, Docker, Meta Graph API } from "sokrat";

A Telegram bot built for a client's news profile on Instagram. Someone sends a photo or a video with a short note, picks one of three captions, and gets a 1080 × 1920 Reel in the profile's own template, with the post text. It posts through Meta's official API, and only after the owner approves.

What it is

Reels bot was built for a client who runs a news-style profile on Instagram. Someone on the team sends the bot a photo or a video with a short note in Telegram. The bot answers with three captions to choose from, then sends back a finished 1080 × 1920 Reel in the profile's own visual template, with the text for the post. If the owner approves, the bot posts it.

How it works

The AI writes the words; the program lays out the Reel. Claude never decides pixels: the text is fitted into the template by code, so every Reel looks like it was made by hand for that profile. Before anything is offered, the caption is checked by code, not by the AI: every number and name in it must appear in the sender's note or in the video. Speech in videos is transcribed so the captions follow what was actually said.

The bot posts only through Meta's official Graph API, and only a batch the owner has approved in Telegram. The AI text for one Reel costs about $0.22. The Reel shown here is real output, made under a neutral demo profile with a scene from Sokrat's Resnik project; the client's brand is not shown.

The Reel at full size, 1080 × 1920: white seaside villas with the caption above, laid out by the bot's own template code