使用钉钉机器人,发送群消息
import requests
import traceback
import json
import datetime
def send_message(alarm_type, msg_desc):
DING_SEND_MESSGEN = "https://xxxxxxxx"
try:
headers = {"Content-Type": "application/json"}
body = {"msgtype": "text", "text": {".
原创
2020-10-10 10:54:44 ·
486 阅读 ·
2 评论