@kedoupi/wecombot-mcp
Version:
A Model Context Protocol (MCP) server for WeChat Work (企业微信) group bot integration
44 lines • 1.03 kB
TypeScript
export type MessageType = 'text' | 'markdown' | 'image' | 'news';
export interface TextMessage {
msgtype: 'text';
text: {
content: string;
mentioned_list?: string[];
mentioned_mobile_list?: string[];
};
}
export interface MarkdownMessage {
msgtype: 'markdown';
markdown: {
content: string;
};
}
export interface ImageMessage {
msgtype: 'image';
image: {
base64: string;
md5: string;
};
}
export interface NewsMessage {
msgtype: 'news';
news: {
articles: Array<{
title: string;
description?: string;
url: string;
picurl?: string;
}>;
};
}
export type WeComMessage = TextMessage | MarkdownMessage | ImageMessage | NewsMessage;
export interface SendMessageRequest {
message_type: MessageType;
content: string;
mentioned_list?: string[];
title?: string;
description?: string;
url?: string;
picurl?: string;
}
//# sourceMappingURL=types.d.ts.map