1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-09 15:12:26 +08:00

与origin代码同步

This commit is contained in:
wind
2023-01-09 17:43:54 +08:00
parent b4402678b3
commit 1cd6133420
4 changed files with 12 additions and 283 deletions

View File

@@ -17,7 +17,7 @@ const (
ChatTypeGroup ChatType = "group"
)
//ReqMessage 企业群发参数
// ReqMessage 企业群发参数
type ReqMessage struct {
ChatType ChatType `json:"chat_type"` //群发任务的类型默认为single表示发送给客户group表示发送给客户群
ExternalUserid []string `json:"external_userid"` // 客户的外部联系人id列表仅在chat_type为single时有效不可与sender同时为空最多可传入1万个客户
@@ -63,10 +63,10 @@ type resTemplateSend struct {
MsgID int64 `json:"msgid"`
}
//Send 发送应用消息
func (tpl *Client) Send(msg *ReqMessage) (msgID int64, err error) {
// Send 发送应用消息
func (r *Client) Send(msg *ReqMessage) (msgID int64, err error) {
var accessToken string
accessToken, err = tpl.ctx.GetAccessToken()
accessToken, err = r.GetAccessToken()
if err != nil {
return
}