Telegram · from Codex

Post to a Telegram channel from Codex.

The channel is where a deploy note reaches the people waiting for it. Codex writes it from the commits, and our bot posts it.

A Telegram channel takes the kind of thing a deploy produces: a short note that something went out, with no picture needed. A channel post can be text alone, up to 4,096 characters, so Codex can write one from the commits since the last tag and publish it in the same turn, through 1Social’s bot. There is no bot of your own to register with BotFather and no token for a .env file, where a command Codex runs could print it into a log.

The channel is connected inside Telegram, by picking it in a chat with our bot, which becomes an admin there with the right to post and to edit and delete its own posts. Screenshots and clips can go too, up to 10 at a time as an album, uploaded from the project through the same upload step every network uses — the one Codex asks you about, because it needs the network.

Asking Codex for a Telegram post

The Telegram ceilings in this exchange come from the same table the publisher enforces — the conversation is drawn, the numbers are not.

Codex17:45

› Set me up — what do you need?

Just the accounts. Connect them in the browser once and I can publish from here after that.

› Done, connected

I will tell you before publishing if a network cannot take what you wrote.

› Good. Drafting the launch note now

Send it over and I will check it before anything goes out.

› deploy’s done — write a short note for the telegram channel from the commits since the last tag and post it

reads git log · text only

1S

Text only, so nothing needs uploading or approving except the post:

Telegram caption4,096fits
Image or videooptional here
Reply chainsjoined into one post
Attachments allowed10per post

Posted to the channel. The link to the post is above if you want to check it.

› _

What Telegram allows

Read from the same table the publisher enforces, so this cannot drift from what actually happens when you press send.

Caption limit
4,096 characters
Post with no image or video
Fine
Reply chains
No — the parts are joined into one post
Images or video per post
10
Image formats
Anything we accept for upload

Codex, on the other networks

Telegram, from the other agents

Publishing to Telegram from Codex

Text needs no upload

A deploy note with no attachment needs no shell command at all, so it posts from Codex even in a sandbox with network access switched off.

No token for a command to leak

The bot is ours and the channel connection sits in 1Social, so no environment variable or file in the project carries the right to post to your channel.

A step after the deploy

A codex exec step at the end of a deploy pipeline can write the note from the commits and post it, once the approval for publishing is decided in config.

Deletion has a deadline

A channel post can be taken down from a later Codex session for a couple of days after it went out; after that Telegram stops bots deleting, and the reply says so.

How it works

1

Connect once

~2 min

Link the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.

ChatGPT

Claude

Cursor

2

Ask, in your own words

one sentence

Tell Codex to publish to Telegram, now or on a day you name. No dashboard, no tab switch.

3

Read the receipt

per network

One line per network — what landed, what failed and why, and what genuinely could not be determined.

Give the deploy job only the tools it needs

Codex lets each MCP server carry an enabled_tools list, which works as an allow list, and a disabled_tools list beside it. For a codex exec step that announces deploys to a Telegram channel, that is worth using: the job needs to list the accounts, check the note and publish it, and nothing more. Leave cancelling, editing and deleting out, and a run that goes wrong — a commit message that reads like an instruction, say — can at worst post an odd note, not remove last week’s. Pair it with an approval mode for publish_post, and the job reaches exactly as far as you meant it to.

A rule of Telegram from Codex, not ours and not the network’s. From documentation, checked 2026-11-23.

When this is the wrong tool

If you want to read or answer the channel’s comments, or see how many people viewed a post, Telegram gives bots neither, so none of it reaches Codex. Groups and private chats are not supported either — only channels, where you are an admin who can add other admins.

Questions people actually ask

Can a codex exec step post to a Telegram channel after a deploy?

Yes. Sign Codex in to 1Social once interactively, decide the approval for publishing in config.toml, and the step can write the note and post it through our bot. The run’s output carries the link. A job that sends the same line every time is simpler with a bot of its own.

Do I need a Telegram bot token in my Codex environment?

No. Posts go through 1Social’s bot, which you add to the channel from inside Telegram when you connect it. Codex holds only its authorisation to our server, and nothing on your machine can post to the channel by itself.

Can I stop a Codex job from deleting channel posts?

Yes. List only the tools the job needs under enabled_tools for the 1Social server, or put delete_post under disabled_tools. Codex then does not offer that tool to the model at all, whatever the prompt or a commit message asks for.

Something else? Ask us — a person answers.

Read next

Start where you already work.

Connect an account and post your first update in about two minutes. Every plan starts with a free trial.

Posts go out through each network’s official API — not scraping.