-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate messages to fit maximum length limitation #66
Comments
Looks like nothing changed? Or just telepush.dev was not updated? Tested today:
|
Telepush.dev has the truncation feature disabled, it will continue rejecting too long messages. |
Ohh i get it. Able to use it by building my own telepush docker image (current release don`t include new -truncateMsgs option). And launch it in local network (in pool mode). Some alerts are OK. But I got some new errors. Looks like it is related to new -truncateMsgs feature.. or something else? alertmanager error: telepush error: Thx for advance! |
This error usually occurs when the text you're sending contains reserved Markdown characters without actually being Markdown, e.g. when there is an underscore ( |
Looks like I need to capture alertmanager notifications some way. Not really sure how to do that. This is notification captured by telegram:
From alertmanager logs: Notification text: |
I created #67, which will solve your problem. Will hopefully get to implementing this very soon! |
Discussed in #65. Roughly copy alertmanager's implementation. Also, add a config option so that a server admin can choose whether to reject too long messages (as it's currently the case) or truncate them.
The text was updated successfully, but these errors were encountered: