Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MsgTypeText = "text" MsgTypeTextCard = "textcard" MsgTypeMarkdown = "markdown" )
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.10.6
type Client struct { CropID string AgentID int AgentSecret string Token accessToken TextCard map[string]interface{} `json:"textcard"` }
Client 微信企业号应用配置信息
func (*Client) Send ¶ added in v1.10.6
func (c *Client) Send(tos, toParty, toTag []string, title, content string, msgTextCard map[string]interface{}) error
Send format send msg to Message
func (*Client) SetMsgType ¶ added in v1.10.6
type Message ¶
type Message struct { ToUser string `json:"touser"` ToParty string `json:"toparty"` ToTag string `json:"totag"` MsgType string `json:"msgtype"` AgentID int `json:"agentid"` Text Content `json:"text"` Markdown Content `json:"markdown"` TextCard map[string]interface{} `json:"textcard"` }
Message 消息主体参数
Click to show internal directories.
Click to hide internal directories.