Documentation
¶
Index ¶
- type Attachment
- type File
- type FileOfMessage
- type Image
- type ImageOfMessage
- type Link
- type LinkOfMessage
- type MessageTemplateInterface
- type MiniProgram
- type MiniProgramOfMessage
- type RequestAddMsgTemplate
- type RequestGetGroupMsgListV2
- type RequestSendWelcomeMsg
- type TextOfMessage
- type Video
- type VideoOfMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type FileOfMessage ¶
func (*FileOfMessage) GetMsgType ¶
func (media *FileOfMessage) GetMsgType() string
type Image ¶
type Image struct {
MediaID string `json:"media_id"` // "MEDIA_ID",
PicURL string `json:"pic_url"` // "http://p.qpic.cn/pic_wework/3474110808/7a6344sdadfwehe42060/0"
}
type ImageOfMessage ¶
type ImageOfMessage struct {
MsgType string `json:"msgtype"` // "image"
Image *Image `json:"image"`
}
func (*ImageOfMessage) GetMsgType ¶
func (media *ImageOfMessage) GetMsgType() string
type Link ¶
type Link struct {
Title string `json:"title"` // "消息标题",
PicURL string `json:"pic_url"` // "https://example.pic.com/path",
Desc string `json:"desc"` // "消息描述",
URL string `json:"url"` // "https://example.link.com/path"
}
type LinkOfMessage ¶
func (*LinkOfMessage) GetMsgType ¶
func (media *LinkOfMessage) GetMsgType() string
type MessageTemplateInterface ¶
type MessageTemplateInterface interface {
GetMsgType() string
}
type MiniProgram ¶
type MiniProgramOfMessage ¶
type MiniProgramOfMessage struct {
MsgType string `json:"msgtype"` // "miniprogram"
MiniProgram *MiniProgram `json:"miniprogram"`
}
func (*MiniProgramOfMessage) GetMsgType ¶
func (media *MiniProgramOfMessage) GetMsgType() string
type RequestAddMsgTemplate ¶
type RequestAddMsgTemplate struct {
ChatType string `json:"chat_type"`
ExternalUserID []string `json:"external_userid"`
Sender string `json:"sender"`
Text *TextOfMessage `json:"text"`
Attachments []MessageTemplateInterface `json:"attachments"`
}
type RequestSendWelcomeMsg ¶
type RequestSendWelcomeMsg struct {
WelcomeCode string `json:"welcome_code"`
Text *TextOfMessage `json:"text"`
Attachments []MessageTemplateInterface `json:"attachments"`
}
type TextOfMessage ¶
type TextOfMessage struct {
Content string `json:"content"` // "content",
}
type VideoOfMessage ¶
type VideoOfMessage struct {
MsgType string `json:"msgtype"` // "video"
Video *Video `json:"video"`
}
func (*VideoOfMessage) GetMsgType ¶
func (media *VideoOfMessage) GetMsgType() string
Click to show internal directories.
Click to hide internal directories.