Sikro
5c7b1cd5f2
add environment variable for notify/telegram.sh
...
Since the server in mainland China cannot connect to Telegram, add the TELEGRAM_BOT_URLBASE environment variable
Please add the proxy address you set. If this variable is not added, it will be the default value (https://api.telegram.org )
2025-03-23 21:00:34 +01:00
fazelukario
26c2fc21c8
Moving to MarkdownV2 as the old Markdown is obsolete
...
- Implemented MarkdownV2 with escape of all necessary characters.
- Ref: https://core.telegram.org/bots/api#markdownv2-style
2024-10-07 05:16:11 +03:00
fazelukario
fef74c3bca
feat Cross-Platform Compatibility Guide
2024-10-07 03:46:35 +03:00
fazelukario
c390f1bfee
Escape markdown for subject
2024-10-07 03:34:49 +03:00
Habetdin
7c7d61f61e
Fix special characters escaping
...
To escape characters '_', '*', '`', '[' outside of an entity, prepend the characters '\' before them.
2021-06-23 03:20:07 +03:00
Mike Beattie
fb079f9e50
Update telegram.sh
...
(fix shellcheck failure)
2021-04-08 16:44:22 +12:00
Mike Beattie
39b09f8f87
Dump _post() call output to /dev/null
...
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:38:00 +12:00
Mike Beattie
53d26e5c5c
Add debug output of $_data variable to aid diagnosis
...
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:37:27 +12:00
Mike Beattie
e21f3e6c73
Escape asterisks in notification content
...
This messes with markdown parsing
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:36:42 +12:00
Mike Beattie
584cc6de2e
Avoid usage of sed -e
2021-01-11 11:27:39 +13:00
Mike Beattie
2e5a6e21cf
Correct shebang
2021-01-11 11:21:46 +13:00
Mike Beattie
10de4b6b7b
Add Telegram notification script
...
Requires:
- API Token for a bot created with the Telegram Bot Father.
- A Chat ID for a user/group that the bot has permission to post to.
2021-01-04 18:41:02 +13:00