New MCP server: let ChatGPTClaudeClaude CodeCodexCursorOpenClaw or any AI agent schedule your posts See how it works

Codex + Telegram

Post to Telegram from Codex

Through iHatePosting, Codex can post messages with pictures or video into a Telegram channel or group. Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, then ask it for the post you want.

Setup takes about a minute. A text message can hold up to 4,096 characters; with a picture or a video the text becomes a caption of up to 1,024.

TelegramCodex15 networks

Posting to Telegram from Codex

Add iHatePosting to Codex once, connect Telegram, and then describe the post. Setup takes about a minute.

Step 1

Add iHatePosting to Codex once

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect Telegram in iHatePosting if you have not already.

Add to the end of ~/.codex/config.toml, then run the login command.

~/.codex/config.toml
[mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting
Step 2

Ask for the Telegram post

Describe the post in plain language. Codex writes it, applies the settings and schedules it.

Codex
> Post the release summary to my Telegram channel today at 18:00. Codex: Done. Scheduled on Telegram.

What Codex can do on Telegram

On Telegram, Codex can post messages with pictures or video into a Telegram channel or group.

Channel messages

Post into a channel or group your bot has been added to.

Media

Attach pictures or video to a message.

Scheduling

Send the message at a time you name.

How Codex gets a post onto Telegram

You say what you want and Codex makes the calls. A typical conversation goes like this.

Find your Telegram channel

Which Telegram accounts do I have in iHatePosting?

What happens

  • Codex lists your channels and finds Telegram
  • It also reads the channel's rules and settings

Compose your content

Send poster.png with a short caption to my Telegram group tomorrow at 9:00.

What happens

  • Codex drafts the text for Telegram
  • It uploads any media you mention

Schedule and publish

Yes, schedule it for tomorrow at 9:00.

What happens

  • Codex schedules the post in iHatePosting
  • iHatePosting publishes it to Telegram at that time

Telegram settings reference

Telegram needs nothing beyond the text, the media and the time.

FieldTypeRequiredDescription
(none)-NoNo extra settings: Codex sends the text, the media and the time

What is Codex?

Codex is OpenAI's coding agent. The command line, the IDE extension and the ChatGPT desktop app all read the same config.toml, so one entry connects every one of them.

It can read a repository, write the announcement for a change and schedule it in iHatePosting.

How iHatePosting works with Codex

Once connected, iHatePosting hands Codex its tools: your channels, posts, media and each channel's settings (14 tools in all). Codex calls them while you describe what you want.

  • iHatePosting MCP server (sign in): Entry in ~/.codex/config.toml, then codex mcp login
  • iHatePosting MCP server (API key): Entry in ~/.codex/config.toml that names the variable holding your key
  • iHatePosting skill (command line): npx skills add iHatePostingOrg/iHatePosting-Agent
Set up Codex
# iHatePosting MCP server (sign in) [mcp_servers.ihateposting] url = "https://app.ihateposting.com/mcp/oauth" # then, in a terminal: codex mcp login ihateposting

Telegram and the other platforms Codex reaches

Ask for Telegram and other channels in a single message; every channel still applies its own settings.

Telegram requests to try in Codex

A channel update

Post the release summary to my Telegram channel today at 18:00.

A picture

Send poster.png with a short caption to my Telegram group tomorrow at 9:00.

A reminder

Remind my Telegram channel about Friday's livestream tomorrow at noon.

Telegram limits and gotchas to know

A few of Telegram's rules shape how Codex writes your request, so it helps to know them.

  • A text message can hold up to 4,096 characters; with a picture or a video the text becomes a caption of up to 1,024.
  • Only bold and underline survive in the text, and a link keeps its words but loses its address.
  • The channel has no extra settings to choose.

Frequently asked questions

Start free for 30 days

Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Telegram in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.

Hand your Telegram posts to Codex

Start free for 30 days.