Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
Err
ExpiresInTime time.Time
}
AccessToken 微信企业号请求Token
type BotMarkDown ¶
type BotMarkDown struct {
Content string `json:"content"`
}
type BotMessage ¶
type BotMessage struct {
MsgType string `json:"msgtype"` // text / textcard / markdown / link(<a href="">...<a/>)
ProgramType string `json:"program"`
IsSendNow bool `json:"issendimmediately"`
ConfigID string `json:"configid"`
Content string `json:"content"`
MentionedList string `json:"mentioned_list"`
}
BotMessage 机器人消息
type Client ¶
type Client struct {
CropID string
AgentID int64
AgentSecret string
Token AccessToken
}
Client 微信企业号应用配置信息
type Media ¶
type Media struct {
MediaID string `json:"media_id"`
Title string `json:"title,omitempty"` // 视频参数
Description string `json:"description,omitempty"` // 视频参数
}
Media 媒体内容
type Message ¶
type Message struct {
ToUser string `json:"touser"`
ToParty string `json:"toparty"`
ToTag string `json:"totag"`
MsgType string `json:"msgtype"`
AgentID int64 `json:"agentid"`
Text Content `json:"text"`
Image Media `json:"image"`
Voice Media `json:"voice"`
Video Media `json:"video"`
File Media `json:"file"`
Textcard TextCard `json:"textcard"`
News News `json:"news"`
MpNews MpNews `json:"mpnews"`
Markdown Content `json:"markdown"`
Taskcard TaskCard `json:"taskcard"`
}
Message 消息主体参数 https://work.weixin.qq.com/api/doc/90000/90135/90236
type Result ¶
type Result struct {
Err
InvalidUser string `json:"invaliduser"`
InvalidParty string `json:"infvalidparty"`
InvalidTag string `json:"invalidtag"`
}
Result 发送消息返回结果
type Robot ¶
type Robot struct {
Webhook string
}
Robot represents a workwxbot custom robot that can send messages to groups.
type Roboter ¶
type Roboter interface {
Send(interface{}) error
}
Roboter is the interface implemented by Robot that can send multiple types of messages.
type TaskCard ¶
type TaskCard struct {
Title string `json:"title"`
Description string `json:"description"`
Url string `json:"url"`
TaskID string `json:"task_id"`
Btn []TaskBtn `json:"btn"`
}
任务卡片
type TextCard ¶
type TextCard struct {
Title string `json:"title"`
Description string `json:"description"`
Url string `json:"url"`
Btntxt string `json:"btntxt"`
}
Card 卡片
type WxBotMessage ¶
Click to show internal directories.
Click to hide internal directories.