1.0.2 • Published 11 months ago

feishu-push v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

飞书群消息推送

使用方式

yarn add feishu-push
import sendMsgToFeishu from 'feishu-push';

// 飞书群webhook token,例子:https://open.feishu.cn/open-apis/bot/v2/hook/4d4b3813-c03c-4bcb-a963-2ca5ff9529eb

// text
sendMsgToFeishu({
  msgType: 'text', // 消息推送类型,支持text和post,默认text
  token: 'xxx',
  content: 'content为包含关键字的推送信息'   
})


// post
sendMsgToFeishu({
  msgType: 'post', // 消息推送类型,支持text和post,默认text
  token: 'xxx',
  content: {
    "title": "项目更新通知",
    "content": [
      [{
          "tag": "text",
          "text": "xxx"
        },
        {
          "tag": "a",
          "text": "请查看",
          "href": "xxx"
        },
        {
          "tag": "at",
          "user_id": "xxx"
        }
      ]
    ]
  }  
})

shell脚本实现飞书群通知

shell实现飞书群通知

1.0.2

11 months ago

1.0.0

1 year ago