From f66bf4b39c5e0a6ca040b788025d49d4981618be Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 12 Jul 2024 06:46:42 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=9A=84API=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/sendMessage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service/sendMessage.ts b/service/sendMessage.ts index 7392d3e..f97a155 100644 --- a/service/sendMessage.ts +++ b/service/sendMessage.ts @@ -1,5 +1,7 @@ import netTool from "./netTool"; +const API_KEY = "1dfz4wlpbbgiky0"; + const sendMessage = async (body: any) => { const URL = "https://egg.imoaix.cn/message"; try { @@ -12,6 +14,7 @@ const sendMessage = async (body: any) => { sendMessage.byGroupId = async (group_id: string, content: string) => { return sendMessage({ + api_key: API_KEY, group_id, msg_type: "interactive", content, @@ -20,6 +23,7 @@ sendMessage.byGroupId = async (group_id: string, content: string) => { sendMessage.byChatId = async (chat_id: string, content: string) => { return sendMessage({ + api_key: API_KEY, receive_id: chat_id, receive_id_type: "chat_id", msg_type: "interactive",