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

Replace all '-' for monitor name. #74

Merged
merged 1 commit into from
Feb 15, 2022
Merged

Conversation

corvofeng
Copy link
Contributor

Fix the monitor name which has multi dashs in telegram alert like this:

  - id: corvo-blog
    name: corvo-myseu-cn
    url: 'https://corvo.myseu.cn/'
    method: GET
    expectStatus: 200

Just like #25

If someone wanna use telegram, he/she must read this https://core.telegram.org/bots/api#markdownv2-style, and test if the text is valid.

In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' 
must be escaped with the preceding character '\'.

It's a little hard to debug.

Maybe the repo owner could add a checker which only allows ASCII and dash for the monitor name.

Signed-off-by: corvofeng [email protected]

@eidam
Copy link
Owner

eidam commented Feb 15, 2022

thank you! will check what I can do to prevent these issues

@eidam eidam merged commit 7813ff9 into eidam:main Feb 15, 2022
@Stanley-baby
Copy link

Has this bug been fixed? I still can't receive messages from tg (Telegram)

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.

3 participants