func weworkAlarm(text string, mentionAll bool) {
mentionAllStr := ""
if mentionAll {
mentionAllStr = "@all"
}
dataJsonStr := fmt.Sprintf(`{"msgtype": "text", "text": {"content": "%s", "mentioned_list": [%s]}}`, text, mentionAllStr)[......]
go实现企业微信机器人消息(原生库)
Leave a reply