diff --git a/src/core/services/NodeIKernelMsgService.ts b/src/core/services/NodeIKernelMsgService.ts index 6eb1f5b0..53baf999 100644 --- a/src/core/services/NodeIKernelMsgService.ts +++ b/src/core/services/NodeIKernelMsgService.ts @@ -465,14 +465,14 @@ export interface NodeIKernelMsgService { setMsgEmojiLikesForRole(...args: unknown[]): unknown; clickInlineKeyboardButton(params: { - guildId: string, + guildId?: string, peerId: string, botAppid: string, msgSeq: string, buttonId: string, callback_data: string, dmFlag: number, - chatType: number + chatType: number // 1私聊 2群 }): Promise; setCurOnScreenMsg(...args: unknown[]): unknown; diff --git a/src/onebot/action/extends/ClickInlineKeyboardButton.ts b/src/onebot/action/extends/ClickInlineKeyboardButton.ts index 124886ce..f27acfb2 100644 --- a/src/onebot/action/extends/ClickInlineKeyboardButton.ts +++ b/src/onebot/action/extends/ClickInlineKeyboardButton.ts @@ -7,6 +7,7 @@ const SchemaData = Type.Object({ bot_appid: Type.String(), button_id: Type.String({ default: '' }), callback_data: Type.String({ default: '' }), + msg_seq: Type.String({ default: '10086' }), }); type Payload = Static; @@ -18,13 +19,12 @@ export class ClickInlineKeyboardButton extends OneBotAction { async _handle(payload: Payload) { return await this.core.apis.MsgApi.clickInlineKeyboardButton({ buttonId: payload.button_id, - guildId: '',// 频道使用 peerId: payload.group_id.toString(), botAppid: payload.bot_appid, - msgSeq: '10086', + msgSeq: payload.msg_seq, callback_data: payload.callback_data, dmFlag: 0, - chatType: 1 + chatType: 2 }) } }