The resource loading... loading...

WeChat, a social networking site, is a social networking site.

Author: The BTC Currency Strategy is copied by the Currency Team, Date: 2023-11-02 10:04:50
Tags:


#!Python3

"""
《策略代写》 与 (此程序帮助),致信QQ:35787501

企业微信消息推送,用于群自定义机器人
同理:修改 data,也可以接入其他软件的 webhook
"""

import requests


def send(text):
    headers = {
        "Content-Type": "application/json"
    }
    data = {
        "msgtype": "text",
        "text": {
            "content": text,
        }
    }
    response = requests.post(webhook, headers=headers, json=data)
    records = response.json()
    return records


def LogQYWX(*args):
    text = " ".join(args)
    Log(text, send(text))


ext.LogQYWX = LogQYWX


More