appleboy / telegram-action

GitHub Action that sends a Telegram message.
https://github.com/marketplace/actions/telegram-message-notify
MIT License
848 stars 108 forks source link

Bad Request: message is too long #43

Open rffontenelle opened 2 years ago

rffontenelle commented 2 years ago

It seems Telegram Bot API limits to 4096 characters per message, so sending a string or a text file that exceeds this limit will make this action returns Bad Request: message is too long.

Would it be possible to "automagically" break bigger messages in smaller messages in order to meet this limit?