导出更多消息对象

This commit is contained in:
CrescentLeaf
2025-12-14 16:40:02 +08:00
parent 56f651f084
commit db3dca724a
2 changed files with 7 additions and 4 deletions

View File

@@ -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, {

View File

@@ -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"
@@ -18,6 +19,9 @@ export {
Chat,
User,
UserMySelf,
Message,
ChatAttachment,
ChatMention,
UserBean,
ChatBean,