|
|
@ -19,13 +19,13 @@ class OneBot extends NotificationProvider {
|
|
|
|
let config = {
|
|
|
|
let config = {
|
|
|
|
headers: {
|
|
|
|
headers: {
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
"Content-Type": "application/json",
|
|
|
|
"Authorization": "Bearer " + notification.accessToken
|
|
|
|
"Authorization": "Bearer " + notification.accessToken,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let psuhText = "UptimeKuma Alert: " + msg;
|
|
|
|
let psuhText = "UptimeKuma Alert: " + msg;
|
|
|
|
let data = {
|
|
|
|
let data = {
|
|
|
|
"auto_escape": true,
|
|
|
|
"auto_escape": true,
|
|
|
|
"message": psuhText
|
|
|
|
"message": psuhText,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if (notification.msgType == "group") {
|
|
|
|
if (notification.msgType == "group") {
|
|
|
|
data["message_type"] = "group";
|
|
|
|
data["message_type"] = "group";
|
|
|
|