Documentation ¶ Index ¶ func NewMarkdown(opts *MsgOpts) *markdownMsg func NewMpNews(opts *MsgOpts) *mpNewsMsg func NewText(opts *MsgOpts) *textMsg func Send(msg AppMsg, at *AccessToken) error type AccessToken func (at *AccessToken) GetToken(isGetNew bool) (string, error) type AppMsg type MsgOpts Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewMarkdown ¶ added in v0.0.5 func NewMarkdown(opts *MsgOpts) *markdownMsg markdown消息 func NewMpNews ¶ added in v0.0.2 func NewMpNews(opts *MsgOpts) *mpNewsMsg 图文消息(mpnews) func NewText ¶ added in v0.0.2 func NewText(opts *MsgOpts) *textMsg 文本消息 func Send ¶ added in v0.0.2 func Send(msg AppMsg, at *AccessToken) error Types ¶ type AccessToken ¶ type AccessToken struct { CorpId string CorpSecret string // contains filtered or unexported fields } func (*AccessToken) GetToken ¶ func (at *AccessToken) GetToken(isGetNew bool) (string, error) type AppMsg ¶ added in v0.0.2 type AppMsg interface { // contains filtered or unexported methods } type MsgOpts ¶ added in v0.0.3 type MsgOpts struct { ToUser string ToParty string ToTag string Title string Content string AgentId int64 MediaId string EnableDuplicateCheck int DuplicateCheckInterval int } Source Files ¶ View all Source files getToken.go msgMarkdown.go msgMpNews.go msgText.go sendMsg.go Click to show internal directories. Click to hide internal directories.