hermosodocs

post_to_telegram

Post to Telegram destructive

Area: TELEGRAM · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool 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

ParameterTypeDescription
accountstringWHICH 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.
brandstringWHICH 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.
hookstringthe post's angle — a list_hooks id or your own wording, reused exactly
subjectstringwhat the post is about
recipestringthe post's FORMAT id, e.g. "slideshow" or "imessage_chat" — post_performance groups by it, so reuse one id per format
ideaIdstringshort id of the content-plan idea this post came from
idempotencyKeystringany stable string: a repeat within 24h returns the original post instead of posting again
allowDuplicatebooleanpost it even though an identical post was just made
chatIdrequiredstringREQUIRED — the destination: a public channel's @username, or the numeric chat id. Never guessed; ask the user, or use list_telegram_chats.
textstringthe message. ≤4096 characters on its own; ≤1024 once any image or video is attached.
imageUrlstringone image (≤10MB after upload); a URL, not a local file path; use upload_file for local files
imageUrlsstring[]an ALBUM of 2–10 media, in order. Photos and videos may be mixed — Telegram allows it.
videoUrlstringone 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
documentUrlstringsend a FILE (≤50 MB) as the post, text as caption; not with image/video
protectContentbooleanno forwarding or saving
disablePreviewbooleansuppress the link-preview card on a text-only post. Default is Telegram’s own behaviour (previews on).
silentbooleandeliver without a notification sound (Telegram’s silent-delivery setting). This is NOT a visibility setting — the message is just as visible.
buttonsobject | 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.
platformCoverbooleanVIDEO 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.
coverAtMsnumberTHE 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.

All 728 Publishing & scheduling tools · tools.json