diff --git a/client-protocol/Message.ts b/client-protocol/Message.ts index 44f3882..2012f24 100644 --- a/client-protocol/Message.ts +++ b/client-protocol/Message.ts @@ -7,9 +7,8 @@ import CallbackError from "./CallbackError.ts" import ApiCallbackMessage from "./ApiCallbackMessage.ts" import * as marked from 'marked' -import { text } from "node:stream/consumers"; -class ChatMention extends BaseClientObject { +export class ChatMention extends BaseClientObject { declare chat_id?: string declare user_id?: string declare text?: string @@ -41,7 +40,7 @@ class ChatMention extends BaseClientObject { type FileType = 'Video' | 'Image' | 'File' type MentionType = 'ChatMention' | 'UserMention' -class ChatAttachment extends BaseClientObject { +export class ChatAttachment extends BaseClientObject { declare file_hash: string declare file_name: string constructor(client: LingChairClient, { diff --git a/client-protocol/main.ts b/client-protocol/main.ts index ce364d0..3bc5867 100644 --- a/client-protocol/main.ts +++ b/client-protocol/main.ts @@ -7,6 +7,7 @@ import GroupSettingsBean from "./bean/GroupSettingsBean.ts" import JoinRequestBean from "./bean/JoinRequestBean.ts" import MessageBean from "./bean/MessageBean.ts" import RecentChatBean from "./bean/RecentChatBean.ts" +import Message, { ChatAttachment, ChatMention } from "./Message.ts" import LingChairClient from "./LingChairClient.ts" import CallbackError from "./CallbackError.ts" @@ -14,10 +15,13 @@ import CallbackError from "./CallbackError.ts" export { LingChairClient, CallbackError, - + Chat, User, UserMySelf, + Message, + ChatAttachment, + ChatMention, UserBean, ChatBean,