Skip to content

Conversation

@Freekers
Copy link

@Freekers Freekers commented Jan 14, 2025

The code now supports MarkdownV2 formatting. It properly handles large messages by intelligently splitting them while preserving Markdown formatting. It also splits messages at natural boundaries (such as newlines and words) whenever possible to avoid exceeding Telegram's message size limit. Each part of a split message is labeled with "(n/N)" at the top, making it easier to track the message parts. Additionally, the code includes a small delay between messages to prevent hitting Telegram's rate limits.

Please note that I am not a developer. In fact, this code was entirely written by Claude AI (because ChatGPT couldn't figure it out). I've tested it and it works for my use case, which is forwarding notifications from my Proxmox instance to Telegram.

I have built the plugin for Gotify V2.6.1 for AMD64, ARM7 and ARM64 platforms and added them as a release to my fork.

I couldn’t get MarkdownV2 to work, likely due to issues with escaping certain characters. However, I did manage to get Markdown working, which is sufficient for my use case.
@Freekers Freekers changed the title Add support for Markdown formatting Add support for MarkdownV2 formatting Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant