Documentation ¶
Index ¶
- Constants
- func SendMessage(c *httpx.Client, aid int64, token, to string, text string) error
- func SendMessageWithMap(c *httpx.Client, token string, data map[string]interface{}) error
- func SendMessageWithReq(c *httpx.Client, token string, req *MessageReq) error
- type MessageMarkdown
- type MessageReq
- type MessageResp
- type MessageText
- type TokenResp
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeMarkdown = "markdown" )
View Source
const Addr = "https://qyapi.weixin.qq.com/cgi-bin"
Variables ¶
This section is empty.
Functions ¶
func SendMessage ¶
func SendMessageWithMap ¶
func SendMessageWithReq ¶
func SendMessageWithReq(c *httpx.Client, token string, req *MessageReq) error
Types ¶
type MessageMarkdown ¶
type MessageMarkdown struct {
Content string `json:"content"`
}
type MessageReq ¶
type MessageReq struct { ToUser string `json:"touser,omitempty"` ToParty string `json:"toparty,omitempty"` ToTag string `json:"totag,omitempty"` MsgType string `json:"msgtype"` AgentId int64 `json:"agentid"` Safe int64 `json:"safe,omitempty"` EnableIdTrans int64 `json:"enable_id_trans,omitempty"` EnableDuplicateCheck int64 `json:"enable_duplicate_check,omitempty"` DuplicateCheckInterval int64 `json:"duplicate_check_interval,omitempty"` Text *MessageText `json:"text,omitempty"` Markdown *MessageMarkdown `json:"markdown,omitempty"` }
type MessageResp ¶
type MessageText ¶
type MessageText struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.