UNPKG

t-comm

Version:

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

24 lines (23 loc) 628 B
/** * 发送企业微信机器人base64图片,其实就是先保存到本地,然后生成md5,最后发送 * @param {object} config 配置信息 * @param {string} config.img base64图片 * @param {string} config.chatId 会话Id * @param {string} config.webhookUrl webhook地址 * @returns {Promise<object>} 请求Promise * @example * * sendWxRobotBase64Img({ * img: 'xxx', * chatId: 'xxx', * webhookUrl: 'xxx', * }).then(() => { * * }) * */ export declare function sendWxRobotBase64Img({ img, chatId, webhookUrl, }: { img: string; chatId: string; webhookUrl: string; }): Promise<object>;