Documentation ¶
Overview ¶
根据分组进行群发消息.
Index ¶
- Constants
- type Client
- func (clt Client) SendImage(msg *Image) (msgid int64, err error)
- func (clt Client) SendNews(msg *News) (msgid int64, err error)
- func (clt Client) SendText(msg *Text) (msgid int64, err error)
- func (clt Client) SendVideo(msg *Video) (msgid int64, err error)
- func (clt Client) SendVoice(msg *Voice) (msgid int64, err error)
- type CommonMessageHeader
- type Image
- type News
- type Text
- type Video
- type Voice
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeImage = "image" MsgTypeVoice = "voice" MsgTypeVideo = "mpvideo" MsgTypeNews = "mpnews" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*mp.WechatClient
}
type CommonMessageHeader ¶
type Image ¶
type Image struct { CommonMessageHeader Image struct { MediaId string `json:"media_id"` } `json:"image"` }
type News ¶
type News struct { CommonMessageHeader News struct { MediaId string `json:"media_id"` } `json:"mpnews"` }
图文消息
type Text ¶
type Text struct { CommonMessageHeader Text struct { Content string `json:"content"` } `json:"text"` }
type Video ¶
type Video struct { CommonMessageHeader Video struct { MediaId string `json:"media_id"` } `json:"mpvideo"` }
Click to show internal directories.
Click to hide internal directories.