Versions in this module Expand all Collapse all v2 v2.0.5 Jan 19, 2021 Changes in this version + const MsgTypeImage + const MsgTypeLink + const MsgTypeMiniProgramPage + const MsgTypeText + type CommonToken struct + CreateTime int64 + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + type CustomerMessage struct + Image *MediaResource + Link *MediaLink + Miniprogrampage *MediaMiniprogrampage + Msgtype MsgType + Text *MediaText + ToUser string + func NewCustomerImgMessage(toUser, mediaID string) *CustomerMessage + func NewCustomerLinkMessage(toUser, title, description, url, thumbURL string) *CustomerMessage + func NewCustomerMiniprogrampageMessage(toUser, title, pagepath, thumbMediaID string) *CustomerMessage + func NewCustomerTextMessage(toUser, text string) *CustomerMessage + type EventType string + type InfoType string + type Manager struct + func NewCustomerMessageManager(context *context.Context) *Manager + func (manager *Manager) Send(msg *CustomerMessage) error + type MediaLink struct + Description string + ThumbURL string + Title string + URL string + type MediaMiniprogrampage struct + Appid string + Pagepath string + ThumbMediaID string + Title string + type MediaResource struct + MediaID string + type MediaText struct + Content string + type MiniProgramMixMessage struct + AppID string + Content string + Event string + MediaID string + MsgID int64 + PagePath string + PicURL string + SessionFrom string + ThumbMediaID string + ThumbURL string + Title string + type MsgType string