# Hermoso: post_to_telegram: Post to Telegram · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/post_to_telegram/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / post_to_telegram

# `post_to_telegram`

Post to Telegram destructive

Area: TELEGRAM · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Use this when the user wants to post to a Telegram channel or group. Publishing costs no credits. Publish to a Telegram channel, group or chat as the brand's own bot. WHICH CHAT IS ALWAYS REQUIRED AND IS NEVER GUESSED: pass chatId as the public channel's @username (e.g. @yourchannel) or its numeric id (a group is negative; a supergroup or channel starts with -100). THE BOT MUST BE IN THE CHAT — an administrator with Post Messages for a channel, an unrestricted member for a group; if it is not, Telegram refuses and the error says to add it rather than to reconnect. 0 credits. Connect at Connectors > Telegram. Full rules: get_instructions({topic:'post_to_telegram'}).

## Parameters

Parameter Type Description

`account` `string` WHICH connected account of this channel to post as — its @handle or id from list_connector_accounts. Needed only when the profile has more than one telegram account connected (several and none named is refused by name, never guessed); omit when there is one.

`brand` `string` WHICH PROFILE this post belongs to, for THIS CALL ONLY (beats the connection’s pin): an id or exact name from list_brands. A name that matches no profile, or two, is REFUSED and nothing is posted.

`hook` `string` the post's angle — a list_hooks id or your own wording, reused exactly

`subject` `string` what the post is about

`recipe` `string` the post's FORMAT id, e.g. "slideshow" or "imessage_chat" — post_performance groups by it, so reuse one id per format

`ideaId` `string` short id of the content-plan idea this post came from

`idempotencyKey` `string` any stable string: a repeat within 24h returns the original post instead of posting again

`allowDuplicate` `boolean` post it even though an identical post was just made

`chatId` required `string` REQUIRED — the destination: a public channel's @username, or the numeric chat id. Never guessed; ask the user, or use list_telegram_chats.

`text` `string` the message. ≤4096 characters on its own; ≤1024 once any image or video is attached.

`imageUrl` `string` one image (≤10MB after upload); a URL, not a local file path; use upload_file for local files

`imageUrls` `string[]` an ALBUM of 2–10 media, in order. Photos and videos may be mixed — Telegram allows it.

`videoUrl` `string` one video (≤50MB). Passed alongside imageUrls it joins the album as one more item; a URL, not a local file path; use upload_file for local files

`documentUrl` `string` send a FILE (≤50 MB) as the post, text as caption; not with image/video

`protectContent` `boolean` no forwarding or saving

`disablePreview` `boolean` suppress the link-preview card on a text-only post. Default is Telegram’s own behaviour (previews on).

`silent` `boolean` deliver without a notification sound (Telegram’s silent-delivery setting). This is NOT a visibility setting — the message is just as visible.

`buttons` `object | object[][]` URL BUTTONS under the post, Telegram's call to action: [{text:'Shop now', url:'https://…'}] one per row, or rows [[a,b],[c]]. URL buttons only (https://, http:// or tg://), optional style danger|success|primary. A single photo, a video or a text post can carry them; an ALBUM cannot (Telegram's sendMediaGroup takes no buttons), so that combination is refused.

`parseMode` `"HTML"` 'HTML' to format the text with Telegram's HTML: <b>, <i>, <u>, <s>, <a href="…">, <code>, <pre>, <blockquote>, <tg-spoiler>. Omit for plain text (the default). In HTML mode a literal <, > or & in the copy must be written &lt; &gt; &amp;, which is why it is never turned on by itself. Markdown (**bold**) is NOT parsed; convert it to HTML tags.

`platformCover` `boolean` VIDEO COVER. Omit it (the default) and Hermoso sets the video’s best frame — the same frame as its Library thumbnail — as the cover (Telegram’s in-chat video cover). true = send no cover and let the platform pick (usually the first frame). A cover you pass yourself always wins.

`coverAtMs` `number` THE VIDEO COVER in the chat, as ONE frame: milliseconds from the start (7000 = the frame at 7s). Sent as Telegram’s cover image; beats platformCover.

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/post_to_telegram`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_to_telegram","arguments":{"chatId":"<string>"}}}`
**CLI**

`hermoso call post_to_telegram --json '{"chatId":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [get_instructions](https://hermoso.ai/docs/reference/workspace/get_instructions/) Read Hermoso's full instructions
- [list_telegram_chats](https://hermoso.ai/docs/reference/publish/list_telegram_chats/) Find Telegram chat ids

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
