Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dingtalk 支持 markdown 消息配置 #22

Merged
merged 6 commits into from
May 25, 2023
Merged

Conversation

funnyzak
Copy link
Contributor

示例:

  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}`);
    });

@imaegoo imaegoo merged commit 19a244c into imaegoo:main May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants