Telegramify Markdown icon

Telegramify Markdown

Convert Markdown to Telegram-compatible format

Overview

This node converts Markdown text into a Telegram-compatible format. It is useful when you want to send messages with Markdown formatting through Telegram, ensuring that the formatting is correctly interpreted by Telegram clients. For example, it can be used to transform Markdown content from a data field into a format that Telegram supports, handling unsupported tags according to user preference.

Use Case Examples

  1. Convert a Markdown message stored in a field named 'content' to Telegram format before sending it via a Telegram node.
  2. Process user-generated Markdown text in a workflow to ensure compatibility with Telegram's message formatting.

Properties

Name Meaning
Field Name The name of the field containing the Markdown text to convert. This can be a direct field name or an expression to dynamically select the field.
Mode The strategy for handling unsupported Markdown tags during conversion. Options include keeping them as-is, escaping unsupported symbols, or removing unsupported tags entirely.

Output

JSON

  • text - The converted text in Telegram-compatible Markdown format.

Dependencies

  • telegramify-markdown library

Troubleshooting

  • Field name is required: Ensure the 'Field Name' property is set and not empty.
  • Field does not exist or invalid expression: Verify the field name or expression used to extract the Markdown text is correct and exists in the input data.
  • Field must be a string: The content of the specified field must be a string containing Markdown text.
  • Unsupported tags handling: Choose the appropriate mode ('keep', 'escape', or 'remove') to handle unsupported Markdown tags according to your needs.

Discussion