1. 因为微信接收企业微信消息不支持markdown格式,故改为text模式发送,可能显示未markdown源码

This commit is contained in:
ngfchl
2022-08-30 17:02:16 +08:00
parent 723b3813f0
commit 2d08ef340e
3 changed files with 6 additions and 3 deletions

View File

@@ -118,7 +118,10 @@ class PtSpider:
corp_id=notify.corpid,
secret=notify.corpsecret,
agent_id=notify.agentid, )
res = notify_push.send_markdown(text)
res = notify_push.send_text(
text=text,
to_uid=notify.touser if notify.touser else '@all'
)
print(res)