import type * as PUPPET from '@juzi/wechaty-puppet' export interface FileItem { url?: string, fileTid: string, thumbnailTid?: string | '' } export interface MediaItem { mediaId: string, thumnailId: string | undefined, height: string, contentDescription: string| undefined, title: string| undefined, description: string| undefined, } export interface MessageItem { messageType: string, text?: string, media?: MediaItem[], thumbnailId?: string, fileId?: string } export interface MiniMessagePayload { id: string, // 消息 id type: PUPPET.types.Message, text: string, talkerId: string, // 小程序界面上对话人的 id talkerName?: string, // 聊天人昵称 talkerAvatar?: string, // 聊天人头像 listenerId: string, // 设置的默认juzi 机器人 id timestamp: number, quoteId?: string } export interface MiniContactPayload { name?: string avatar?: string phone?: string alias: string id: string hashId: string }