 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package workwechat 企业微信机器人
Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( KEY = `` API_URL = `https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=%v` )
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
	MsgType  string    `json:"msgtype"`            //消息类型 text/markdown/image/news
	Text     *Text     `json:"text,omitempty"`     // MsgType=text 时有效
	Markdown *Markdown `json:"markdown,omitempty"` // MsgType=markdown 时有效
	Image    *Image    `json:"image,omitempty"`    // MsgType=image 时有效
	News     *News     `json:"news,omitempty"`     // MsgType=news 时有效
}
    Message 企业微信消息实体 每个机器人发送的消息不能超过20条/分钟。
func (*Message) SendMarkdown ¶
type Text ¶
type Text struct {
	Content             string   `json:"content"`               //文本内容,最长不超过2048个字节,必须是utf8编码
	MentionedList       []string `json:"mentioned_list"`        //userid的列表,提醒群中的指定成员(@某个成员),@all表示提醒所有人,如果开发者获取不到userid,可以使用mentioned_mobile_list
	MentionedMobileList []string `json:"mentioned_mobile_list"` //手机号列表,提醒手机号对应的群成员(@某个成员),@all表示提醒所有人
}
     Click to show internal directories. 
   Click to hide internal directories.