From 0023b2846a12ec7851f4e33d052582ce80a3f8d4 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: Sat, 13 Jul 2024 17:23:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AC=AC=E4=BA=8C=E6=AC=A1=E5=A4=A7?= =?UTF-8?q?=E8=87=B4=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/src/entities/msg.ts | 37 +++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/src/core/src/entities/msg.ts b/src/core/src/entities/msg.ts index df4bde60..bb5d4ea1 100644 --- a/src/core/src/entities/msg.ts +++ b/src/core/src/entities/msg.ts @@ -31,7 +31,7 @@ export enum ElementType { VIDEO = 5, FACE = 6, REPLY = 7, - EWALLET = 9, + WALLET = 9, GreyTip = 8,//Poke别叫戳一搓了 官方名字拍一拍 戳一戳是另一个名字 ARK = 10, MFACE = 11, @@ -59,13 +59,35 @@ export enum ElementType { export interface SendActionBarElement { elementType: ElementType.ACTIONBAR; elementId: string; - actionBarElement: {} + actionBarElement: { + rows: InlineKeyboardRow[]; + botAppid: string; + } } export interface SendRecommendedMsgElement { elementType: ElementType.RECOMMENDEDMSG; elementId: string; - recommendedMsgElement: {} - + recommendedMsgElement: { + rows: InlineKeyboardRow[]; + botAppid: string; + } +} +export interface InlineKeyboardButton { + id: string; + label: string; + visitedLabel: string; + unsupportTips: string; + data: string; + specifyRoleIds: string[]; + specifyTinyids: string[]; + style: number; + type: number; + clickLimit: number; + atBotShowChannelList: boolean; + permissionType: number; +} +export interface InlineKeyboardRow { + buttons: InlineKeyboardButton[]; } export interface TofuElementContent { color: string; @@ -74,7 +96,12 @@ export interface TofuElementContent { export interface SendTaskTopMsgElement { elementType: ElementType.TASKTOPMSG; elementId: string; - taskTopMsgElement: {} + taskTopMsgElement: { + msgTitle: string; + msgSummary: string; + iconUrl: string; + topMsgType: number; + } } export interface SendTofuRecordElement { elementType: ElementType.TOFURECORD;