feat: add qq push

This commit is contained in:
2025-06-28 20:34:33 +08:00
parent 6c44e37ffe
commit 2a0115ea17
3 changed files with 34 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
export function sendMsg(msg: string, target_id: string, bot_url: string): Promise<Response> {
const replyMessage = {
user_id: String(target_id),
message: [
{
type: "text",
data: {
text: msg
}
}
]
}
return fetch(bot_url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(replyMessage)
});
}