返回报错:{'errcode': 40101, 'errmsg': 'missing parameter rid: 67c54283-6796e654-70c9e9b5'}
如果添加 businessid,则报错:{'errcode': -1000, 'errmsg': 'system error rid: 67c54550-57d5be6e-3544c10b'}
# 根据is_typing参数决定使用哪个命令
command = "Typing" if is_typing else "CancelTyping"
url = f"https://api.weixin.qq.com/cgi-bin/message/custom/business/typing?access_token={access_token}"
data = {
# "businessid": 1,
"touser": openid,
"command": command
}
body = json.dumps(data, ensure_ascii=False).encode('utf-8')
response = requests.post(url, data=body, verify=False)