# 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.

Canonical: https://tesselith.com/ai-agents/openai-api/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

- "Create a draft for each product in today's deals file, up to ten, each with the price and the product link."
- "List the Telegram channels in my workspace and say which ones have nothing queued for the next seven days."
- "Upload the image at this public URL and attach it to this morning's Telegram draft."
- "Queue the drafts marked approved in the ticket notes, one per free Telegram slot, in the order they were written."
- "Show the Telegram posts published last week with their dates, one line each, and nothing else."

## Tips

- 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.

## Questions people ask

### Do I need a Tesselith API key?

Yes. Your agent connects to Tesselith's MCP server with a key from your workspace, so store it in your environment and not in your source code.

### Can the agent publish a Telegram post straight away?

It can call publish_now, but that needs confirm set to true, which should only happen after a person agrees. Build that approval step into your app before you ship.

### Which OpenAI plan do I need?

The API bills by usage, so you need an API key and credit on your OpenAI account. Tesselith itself needs a Pro, Team or Agency workspace.

---
Tesselith · https://tesselith.com · Full site index: https://tesselith.com/llms.txt
