UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

36 lines (35 loc) 1.05 kB
interface ISendReq { chatId: string | Array<string>; webhookUrl: string; } /** * 批量发送企业微信机器人base64图片 * @param {object} config 配置信息 * @param {string} config.img base64图片 * @param {string} config.chatId 会话Id * @param {string} config.webhookUrl webhook地址 * @returns {Promise<object>} 请求Promise * @example * * batchSendWxRobotBase64Img({ * img: 'xxx', * chatId: 'xxx', // or ['xxx], or ['ALL'], or 'ALL' * webhookUrl: 'xxx', * }).then(() => { * * }) * */ export declare function batchSendWxRobotBase64Img({ img, chatId, webhookUrl, }: { img: string; } & ISendReq): Promise<any>; export declare function batchSendWxRobotMsg({ content, alias, chatId, webhookUrl, }: { content: string; alias: string | Array<string>; } & ISendReq): Promise<any>; export declare function batchSendWxRobotMarkdown({ content, attachments, chatId, webhookUrl, isV2, }: { content: string; attachments?: Array<object>; isV2?: boolean; } & ISendReq): Promise<any>; export {};