From 1ad6ea4049f47ea1ed6d99646bad3578d1cf4190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 28 Apr 2024 21:43:15 +0800 Subject: [PATCH] add: GetEssenceMsg --- src/onebot11/action/group/GetGroupEssence.ts | 19 +++++++++++++++++++ src/onebot11/action/types.ts | 1 + 2 files changed, 20 insertions(+) create mode 100644 src/onebot11/action/group/GetGroupEssence.ts diff --git a/src/onebot11/action/group/GetGroupEssence.ts b/src/onebot11/action/group/GetGroupEssence.ts new file mode 100644 index 00000000..ad3bd9f1 --- /dev/null +++ b/src/onebot11/action/group/GetGroupEssence.ts @@ -0,0 +1,19 @@ +import { getGroup } from '@/core/data'; +import { OB11Group } from '../../types'; +import { OB11Constructor } from '../../constructor'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQMsgApi } from '@/core/apis/msg'; + +interface PayloadType { + group_id: number +} + +export class GetGroupEssence extends BaseAction { + actionName = ActionName.GoCQHTTP_GetEssenceMsg; + + protected async _handle(payload: PayloadType) { + //await NTQQMsgApi.GetEssenceMsg() + return null; + } +} diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index 9873c218..41b88e6c 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -56,6 +56,7 @@ export enum ActionName { GetRobotUinRange = 'get_robot_uin_range', SetOnlineStatus = 'set_online_status', // 以下为go-cqhttp api + GoCQHTTP_GetEssenceMsg='get_essence_msg_list', GoCQHTTP_SetGroupNotice = '_send_group_notice', GoCQHTTP_GetGroupNotice = '_get_group_notice', GoCQHTTP_SendForwardMsg = 'send_forward_msg',