Social Media Post
AI-generatedSummary
Publish content to Telegram via the Social Media Posting microservice.
Inputs
- platform (required) — Social media platform to post to. Determines which API key from credentials to use.
- mode (required) — Configuration mode: UI (user-friendly forms) or YAML/JSON config
- jsonConfig (required) — Full request configuration in JSON or YAML format. The platform and auth fields will be automatically added (can be overridden). When mode is JSON, this is the primary input source.
- account — Account name from microservice config.yaml. If specified, platform and auth are taken from server config.
- channelId — Channel/chat ID (e.g., @mychannel, -100123456789, or 123456789 for Telegram). Accepts both string and number formats.
- body — Main content of the post (optional if media is provided)
- type — Type of post to create (auto, album, article, audio, document, image, poll, short, story, post, video)
- additionalOptions — Collection of platform-specific options including title, description, tags, cover/video spoiler settings, disable notification, body format, max body length, platform options YAML/JSON, post language, scheduled time, and publishing mode.
Output shape
object
On success, returns the API response data object containing the posted content. On error with success===false, returns an error object with code, message, and details. If the node's continueOnFail setting is enabled, errors are pushed as data instead of stopping the workflow. HTTP request failures throw a NodeOperationError unless continueOnFail is true.
Examples
Example 1: UI mode post to a Telegram channel
Platform: telegram, Mode: UI, Channel ID: @mychannel, Body: Hello world, Type: post, Additional Options: disableNotification false
Example 2: JSON mode post with full config
Platform: telegram (auto from credentials), Mode: JSON, jsonConfig: { body:
Example 3: Album post with media array
Platform: telegram, Mode: UI, Type: album, Media: [{