imaegoo / pushoo

💬 即时消息推送 Node SDK
https://pushoo.js.org
MIT License
115 stars 10 forks source link

dingtalk 支持 markdown 消息配置 #22

Closed funnyzak closed 1 year ago

funnyzak commented 1 year ago

示例:

  pushoo
    .notice('dingtalk', {
      content: `Hello World, ${new Date().getTime()}`,
      token: 'dingtalktoken',
    })
    .then((rlt) => {
      console.log(`Pushoo notice success: ${rlt}`);
    });
  pushoo
    .notice('dingtalk', {
      content: `## Hello World \n Now: ${new Date().getTime()}`,
      title: 'Hello World',
      token: 'dingtalktoken',
      options: {
        dingtalk: {
          msgtype: 'markdown',
        },
      },
    })
    .then((rlt) => {
      console.log(`Pushoo notice success: ${rlt}`);
    });