@zhengxs/wechaty-plugin-assistant
Version:
18 lines (16 loc) • 448 B
TypeScript
import { Message } from 'wechaty';
type MockMessageOptions = {
talkerId?: string;
talkerName?: string;
roomId?: string;
roomName?: string;
};
/**
* 创建一个模拟的消息
*
* @param text -
* @returns
*/
export declare const createMockTextMessage: (text?: string, options?: MockMessageOptions) => Message;
export declare function createRoomTextMockMessage(text?: string, options?: MockMessageOptions): Message;
export {};