Telegram Message Type
AI-generatedSummary
Detects a Telegram publication’s message type from its media, buttons, and content, then routes each input item to an output for the matching send kind. Use the result to choose a Telegram sending operation or pass the normalized fields to a compatible node.
Inputs
- Media — Array of media objects with
urland optionaltypeMIME type; accepts an array or a JSON string. Defaults to the incomingMediaormediafield, then an empty array. MIME type and URL determine the Telegram media type. - Buttons — Array of button rows with
layoutandbuttons; accepts an array or a JSON string. Defaults to the incomingButtonorbuttonsfield, then an empty array. A button URL creates a URL button; otherwise its action or label is used as callback data. - Content — Message text or HTML, used as the trimmed output caption. Defaults to the incoming
Contentorcontentfield, then an empty string. - Output — Choose whether to merge detection fields into each input item (
merge, the default) or return only the detection result (replace).
Output shape
Items routed across 11 named outputs: Send Text, Send Photo, Send Video, Send Video Note, Send Audio, Send Voice, Send Document, Send Animation, Send Sticker, Send Media Group, and Other/Unknown.
Each item includes
type,sendKind,hasButtons, normalizedmedia,caption, andreply_markup;multi: trueis included for video notes, voice, stickers, or media groups with buttons. Media types are inferred from MIME type, with.tgsURLs treated as stickers; a single video file whose basename starts withcircleorcirkleis classified as a video note, andaudio/oggoraudio/opusas voice. Media groups with buttons are marked for multi-step sending. The node routes bysendKindand, for single media, its detected Telegram type; Other/Unknown receives any unmatched kind.