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",