Telegramify icon

Telegramify

Telegramify | Convert markdown to Telegram friendly format

Overview

This node, named "Telegramify," converts input text written in Markdown format into a Telegram-friendly format. It is useful when you want to prepare messages or descriptions that will be sent via Telegram and need to ensure the formatting is compatible with Telegram's message styling rules.

Common scenarios include:

  • Preparing user-generated content for Telegram bots.
  • Formatting notifications or alerts before sending them through Telegram channels.
  • Converting rich text inputs into a simplified format that Telegram supports.

For example, if you have a Markdown string like **bold text** or [link](http://example.com), this node will transform it into a format that Telegram can correctly display.

Properties

Name Meaning
Text The description text in Markdown format that you want to convert to Telegram-friendly formatting.

Output

The node outputs an array of items where each item contains a JSON object. The key text in the JSON holds the converted Telegram-friendly string derived from the input Markdown text.

Example output structure:

[
  {
    "json": {
      "text": "<converted Telegram-friendly text>"
    }
  }
]

No binary data output is produced by this node.

Dependencies

  • This node depends on an internal utility function (telegramify) which performs the actual conversion from Markdown to Telegram format.
  • No external API keys or services are required.
  • No special environment variables or n8n configurations are necessary.

Troubleshooting

  • Empty or invalid input text: If the "Text" property is empty or contains unsupported Markdown syntax, the output may not be as expected. Ensure valid Markdown input.
  • Errors during conversion: If the conversion function throws an error, the node either stops execution or continues based on the "Continue On Fail" setting.
  • Error messages: Errors will indicate the item index causing the problem. To resolve, check the input text at that index for invalid characters or unsupported formatting.

Links and References

Discussion