shell 钉钉群聊机器发消息

comm="要发送的内容"

curl 'https://oapi.dingtalk.com/robot/send?access_token=xxxxxxxxxxxx' \
        -H 'Content-Type: application/json' \
        -d "{'msgtype': 'text','text': {'content':\"升级命令: ${comm}\"}}"

点击跳转 钉钉群聊 机器人 官方文档

posted @ 2022-01-26 18:27  Linux_小白  阅读(91)  评论(0)    收藏  举报