Skip to content
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

Telegram SLA Notification "message is too long" #364

Closed
jenggo opened this issue Jun 11, 2023 · 3 comments · Fixed by #365
Closed

Telegram SLA Notification "message is too long" #364

jenggo opened this issue Jun 11, 2023 · 3 comments · Fixed by #365

Comments

@jenggo
Copy link

jenggo commented Jun 11, 2023

Background & X Problem
Some of my servers do not report the SLA, so when I check the log, it turns out there is Overall SLA Report([telegram / OneOfMyServer / SLA] failed after 3 retries - Error response from Telegram - code [400] - msg [{\"ok\":false,\"error_code\":400,\"description\":\"Bad Request: message is too long\"}]) - failed to send!

Proposal and Expectation
Can you cut the message into several parts?

Solutions & Y Problems
I think it's because of the telegram limitation, can't send more than 4096 characters?
2023-06-11_08-03

@samanhappy
Copy link
Collaborator

@jenggo thanks for reporting, it should be a limitation from Telegram as you mentioned, cutting message sounds like a reasonable solution, we will try it and notice you when it is completed.

@samanhappy
Copy link
Collaborator

@jenggo we have completed a PR to split message for Telegram, you can test it using latest code now.

@jenggo
Copy link
Author

jenggo commented Jun 14, 2023

2023-06-14_07-35
confirmed, thank you

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 a pull request may close this issue.

2 participants