Skip to content
IvonWei edited this page Jan 22, 2022 · 4 revisions

wecom

企业微信消息发送插件,微信可关注微工作台接收消息,不必安装企业微信

企业微信获取参数:https://work.weixin.qq.com/api/doc/90000/90135/90665

    notify:
      entries:
        message: "Title: {{title}}"
        via:
          - wecom:
              corp_id: <corp_id>
              # 小程序secret
              corp_secret: <corp_secret>
              agent_id: <agent_id>
              to_user: <to_user>
              image: 'details_report.png' #发送 config 目录 下的 details_report.png 图片

json模式: https://work.weixin.qq.com/api/doc/90000/90135/90236 图文消息示例

    set:
      image_url: https://alifei01.cfp.cn/creative/vcg/800/new/VCG41N1210205351.jpg
    notify:
      entries:
        message: |+
          {
             "touser" : "xxxxxxxx",
             "msgtype" : "news",
             "agentid" : xxxxxxxx,
             "news" : {
                 "articles":[
                     {
                         "title" : "中秋节礼品领取",
                         "description" : "今年中秋节公司有豪礼相送",
                         "picurl": "{{image_url}}"
                      }
                 ]
             },
             "safe":0,
             "enable_id_trans": 0,
             "enable_duplicate_check": 0,
             "duplicate_check_interval": 1800
          }
        via:
          - wecom:
              corp_id: 'xxxxxxxx'
              corp_secret: 'xxxxxxxx'
              type: json

telegram_mod

基于官方telegram插件修改,添加消息过长自动分割,发送统计图

    notify:
      entries:
        message: "Title: {{title}}"
        via:
          - telegram_mod:
              bot_token: 'xxxxxxxx'
              image: 'details_report.png' #发送 config 目录 下的 details_report.png 图片
              recipients:
                - username: 'xxxxxxxx'