Files
2024-07-02 13:54:57 +08:00

22 lines
511 B
Python

import requests
import json
import time
def reboot_send(mes_reboot):
data = {
"msgtype": "markdown",
"markdown": {
"content": mes_reboot,
}
}
r = requests.post(url='https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=c6f7d16f-5e5a-4e7e-b23c-a8516bfa47a6',
json=data)
if __name__ == '__main__':
mes1 = "# 标题\n" \
"[这是一个链接](http://work.weixin.qq.com/api/doc)\n" \
"@郭安"
reboot_send(mes1)