We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3afb4 commit 542f89eCopy full SHA for 542f89e
sendmsg.go
@@ -17,7 +17,14 @@ type SendMsgSchema struct {
17
MsgID string `json:"msgid"` // 消息ID。如果请求参数指定了msgid,则原样返回,否则系统自动生成并返回。不多于32字节, 字符串取值范围(正则表达式):[0-9a-zA-Z_-]*
18
}
19
20
-// SendMsg 获取消息
+// SendMsg 发送消息
21
+// 当微信客户处于“新接入待处理”或“由智能助手接待”状态下,可调用该接口给用户发送消息。
22
+// 注意仅当微信客户在主动发送消息给客服后的48小时内,企业可发送消息给客户,最多可发送5条消息;若用户继续发送消息,企业可再次下发消息。
23
+// 支持发送消息类型:文本、图片、语音、视频、文件、图文、小程序、菜单消息、地理位置。
24
+// 目前该接口允许下发消息条数和下发时限如下:
25
+//
26
+// 用户动作 允许下发条数限制 下发时限
27
+// 用户发送消息 5条 48 小时
28
func (r *Client) SendMsg(options interface{}) (info SendMsgSchema, err error) {
29
data, err := util.HttpPost(fmt.Sprintf(sendMsgAddr, r.accessToken), options)
30
if err != nil {
0 commit comments