🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
text="$1"
id=$2
chat_id=$3
token=$4
function curl_proxy() {
if [ -z "$PROXY" ]; then
curl --retry 10 "$@"
else
curl --retry 10 -x $PROXY "$@"
fi
}
curl_proxy -4 -Ss -o /dev/null -X POST \
-H 'Content-Type: application/json' \
-d '{"chat_id": "'"${IM_NOTIFY_CHANNEL_TELEGRAM_BOT_CHAT_ID}"'", "text": "'"${text}"'", "parse_mode": "HTML", "disable_notification": "false"}' \
"https://api.telegram.org/bot${IM_NOTIFY_CHANNEL_TELEGRAM_BOT_TOKEN}/sendMessage"
if [ $? -eq 0 ]; then
echo "Send telegram bot success"
else
echo "Send telegram bot failed"
exit 1
fi