Telegram · from OpenCode

Post to a Telegram channel from OpenCode.

Deploy notes are often written on the machine that deployed. OpenCode can sign in there too, and our bot does the posting.

A Telegram channel suits what a deploy leaves behind: a few lines on what changed, with no picture required. A channel post can be text alone, up to 4,096 characters, so OpenCode can write one from the commits since the last tag and post it through 1Social’s bot in the same task. You do not register a bot with BotFather or keep its token in a .env file where a script, a log or the agent itself could read it.

Screenshots and short clips can go along. OpenCode sends them from disk through our upload tool, the bot posts them, and up to 10 arrive in the channel as one album. The channel is connected from inside Telegram, by choosing it in a chat with our bot, which becomes an admin there able to post and to edit or delete its own posts; deleting works for two days only, which is Telegram’s rule for bots.

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

OpenCode17:48

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

› the deploy just finished, 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 alone is fine for a channel, so this is ready to go:

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

Posted to the channel; the post link is in the line above.

› _

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

OpenCode, on the other networks

Telegram, from the other agents

Publishing to Telegram from OpenCode

Text is a whole channel post

A deploy note with nothing attached goes straight to the channel, so an OpenCode request at the end of a release has no file to find and nothing to upload.

No bot token on the server

The bot belongs to 1Social and the channel connection lives in our app, so the deploy machine’s environment and the repository never hold a Telegram token.

Build screenshots as an album

Name a few screenshots from the build output and OpenCode uploads each, then our bot sends them with the note as a single grouped message in the channel.

Two days to take it back

For two days after posting, the bot can still delete what it sent, so a later OpenCode session can remove a wrong note; after that it comes down in Telegram.

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

Signing in on a remote box takes one paste

Deploy notes tend to be written where the deploy ran, which is often a server reached over SSH or a container. OpenCode’s sign-in to a remote MCP server sends you to a browser and expects to be redirected back to the machine OpenCode runs on, and on a remote box that last page will not load. OpenCode’s documentation covers this: copy the address of the page that failed from your browser’s address bar and paste it into the sign-in prompt in the terminal. That finishes the sign-in on the server itself. How long it then lasts for unattended runs is not spelled out, so check that the first scheduled note arrives.

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

When this is the wrong tool

If you want to post to a Telegram group or a private chat, this does not reach them; it covers channels only, and view counts and comments stay in Telegram. And if a deploy script should send exactly the same message every time, a bot of your own called from that script is simpler than asking a model to write it.

Questions people actually ask

Can I sign OpenCode in to 1Social on a server I reach over SSH?

Yes. Run opencode mcp auth there, open the sign-in in the browser on your own machine, and when the final page fails to load, copy its address and paste it into the prompt on the server. OpenCode documents this for SSH sessions, containers and remote servers.

Does OpenCode need my own Telegram bot to post to a channel?

No. Posts are sent by 1Social’s bot, which you add to the channel from inside Telegram when you connect it. OpenCode never sees a bot token, and nothing in opencode.jsonc could post to the channel on its own.

Can OpenCode attach build screenshots to a Telegram channel post?

Yes. Name the files and OpenCode uploads each through 1Social; the bot then sends them with your note as one album of up to 10. A post without any pictures is fine as well, since channels accept text on its own.

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.