Schedule Telegram posts with OpenAI API
The OpenAI API is for developers who build their own agent, so this route is for code you own rather than a chat window. Tesselith's MCP server plugs into the Responses API as a hosted tool, and your agent can draft, queue and schedule Telegram posts. Publishing now and deleting always need a confirmation from a person, so build that step into your app.
1. Connect OpenAI API
Then connect Telegram in Tesselith under Channels. How Telegram scheduling works.
2. Ask for a Telegram post
What people use OpenAI API for on Telegram
Post fixes to a status channel
A SaaS company builds an internal agent that reads its support tickets each morning. When a bug is marked resolved, the agent drafts a Telegram post for the status channel that says what was fixed and what users should do. The drafts are created in Tesselith, and a support lead approves them in the app. Customers never see the first draft.
Turn a deals spreadsheet into a weekly channel
A bike shop with two hundred products runs a Telegram channel for weekly deals. Its own script reads the discounted rows from the shop's CSV export and passes them to a model through the Responses API. The model writes one short post per deal, with the price and a link, and creates drafts on the channel. The owner reads the batch on Monday and queues the ones they like.
Fill weekend gaps from the queue
A nonprofit with a volunteer team runs a Telegram channel that often goes quiet on weekends. Its agent checks the queue each Friday through Tesselith's tools and finds the empty weekend slots. It drafts a short post for each gap from the month's volunteer newsletter. The coordinator approves the drafts before anything is queued.
Prompts to try in OpenAI API for Telegram
Telegram limits to keep in mind
Telegram messages are limited to 4,096 characters, and captions on photos and videos to 1,024. Tesselith checks drafts against these before they can be scheduled, so OpenAI API gets a clear error instead of a failed post.
Tips for Telegram posts written with OpenAI API
- Keep the model's instructions short and literal. Say which tool creates drafts and which one needs a human, and the agent makes fewer surprise calls when your feed changes.
- Pass only the fields the model needs for each post, such as the price, the product name and the link. A smaller input gives shorter Telegram copy and less room for invented details.
- Check the length of text before it reaches Tesselith. Text messages are capped at 4,096 characters and captions at 1,024, so add a rule to your prompt and a length check in your code.
- Log the post IDs your agent creates. When a post needs changing later, the update call needs its ID, and a stored list saves a search through the queue.