import time
import requests
webhook = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=286958ce-148c-427e-956c-fa068f7a503f'
message = {
"msgtype": "text",
"text": {
"content": "大家下午好啊,这里是牛马机器人的gpt:https://kimi.moonshot.cn/chat/ct2jlnqj2gpblbr3sv6g"
}
}
def send_message():
headers = {'Content-Type': 'application/json'}
response = requests.post(url=webhook, json=message,headers=headers)
print(response.text)
while True:
send_message()
time.sleep(300)
企微机器人定时发送消息
最新推荐文章于 2025-06-27 18:03:02 发布