Documentation ¶
Index ¶
- type A
- type AT
- type Client
- type Content
- type Image
- type ImageContent
- type ImageMessage
- type InteractiveMessage
- type Message
- type MsgType
- type PostBody
- type PostCMDContent
- type PostCMDMessage
- type PostContent
- type PostItem
- type PostMessage
- func (m *PostMessage) AppendENContent(i []PostItem) *PostMessage
- func (m *PostMessage) AppendJAContent(i []PostItem) *PostMessage
- func (m *PostMessage) AppendZHContent(i []PostItem) *PostMessage
- func (m *PostMessage) Body() map[string]interface{}
- func (m *PostMessage) SetEN(u PostUnit) *PostMessage
- func (m *PostMessage) SetENTitle(t string) *PostMessage
- func (m *PostMessage) SetJA(u PostUnit) *PostMessage
- func (m *PostMessage) SetJATitle(t string) *PostMessage
- func (m *PostMessage) SetZH(u PostUnit) *PostMessage
- func (m *PostMessage) SetZHTitle(t string) *PostMessage
- type PostUnit
- type Response
- type ShareChatContent
- type ShareChatMessage
- type Text
- type TextMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A ¶
type Image ¶
type ImageContent ¶
type ImageContent struct {
ImageKey string `json:"image_key"`
}
type ImageMessage ¶
type ImageMessage struct { MsgType MsgType `json:"msg_type"` Content ImageContent `json:"content"` }
func NewImageMessage ¶
func NewImageMessage() *ImageMessage
func (*ImageMessage) Body ¶
func (m *ImageMessage) Body() map[string]interface{}
func (*ImageMessage) SetImageKey ¶
func (m *ImageMessage) SetImageKey(key string) *ImageMessage
type InteractiveMessage ¶
func NewInteractiveMessage ¶
func NewInteractiveMessage() *InteractiveMessage
func (*InteractiveMessage) Body ¶
func (m *InteractiveMessage) Body() map[string]interface{}
func (*InteractiveMessage) SetCard ¶
func (m *InteractiveMessage) SetCard(card string) *InteractiveMessage
SetCard set card with cardbuilder https://open.feishu.cn/tool/cardbuilder?from=custom_bot_doc
type PostCMDContent ¶
type PostCMDContent struct {
Post map[string]interface{} `json:"post"`
}
type PostCMDMessage ¶
type PostCMDMessage struct { MsgType MsgType `json:"msg_type"` Content PostCMDContent `json:"content"` }
func NewPostCMDMessage ¶
func NewPostCMDMessage() *PostCMDMessage
func (*PostCMDMessage) Body ¶
func (m *PostCMDMessage) Body() map[string]interface{}
func (*PostCMDMessage) SetPost ¶
func (m *PostCMDMessage) SetPost(post string) *PostCMDMessage
type PostContent ¶
type PostContent struct {
Post PostBody `json:"post"`
}
type PostMessage ¶
type PostMessage struct { MsgType MsgType `json:"msg_type"` Content PostContent `json:"content"` }
func NewPostMessage ¶
func NewPostMessage() *PostMessage
func (*PostMessage) AppendENContent ¶
func (m *PostMessage) AppendENContent(i []PostItem) *PostMessage
func (*PostMessage) AppendJAContent ¶
func (m *PostMessage) AppendJAContent(i []PostItem) *PostMessage
func (*PostMessage) AppendZHContent ¶
func (m *PostMessage) AppendZHContent(i []PostItem) *PostMessage
func (*PostMessage) Body ¶
func (m *PostMessage) Body() map[string]interface{}
func (*PostMessage) SetEN ¶
func (m *PostMessage) SetEN(u PostUnit) *PostMessage
func (*PostMessage) SetENTitle ¶
func (m *PostMessage) SetENTitle(t string) *PostMessage
func (*PostMessage) SetJA ¶
func (m *PostMessage) SetJA(u PostUnit) *PostMessage
func (*PostMessage) SetJATitle ¶
func (m *PostMessage) SetJATitle(t string) *PostMessage
func (*PostMessage) SetZH ¶
func (m *PostMessage) SetZH(u PostUnit) *PostMessage
func (*PostMessage) SetZHTitle ¶
func (m *PostMessage) SetZHTitle(t string) *PostMessage
type Response ¶
type Response struct { Code int64 `json:"code"` Msg string `json:"msg"` Data any `json:"data"` Extra any `json:"Extra"` StatusCode int64 `json:"StatusCode"` StatusMessage string `json:"StatusMessage"` }
Response response struct
type ShareChatContent ¶
type ShareChatContent struct {
}type ShareChatMessage ¶
type ShareChatMessage struct {}
func NewShareChatMessage ¶
func NewShareChatMessage() *ShareChatMessage
func (*ShareChatMessage) Body ¶
func (m *ShareChatMessage) Body() map[string]interface{}
func (*ShareChatMessage) SetShareChatID ¶
func (m *ShareChatMessage) SetShareChatID(ID string) *ShareChatMessage
type Text ¶
type TextMessage ¶
func NewTextMessage ¶
func NewTextMessage() *TextMessage
func (*TextMessage) Body ¶
func (m *TextMessage) Body() map[string]interface{}
func (*TextMessage) SetText ¶
func (m *TextMessage) SetText(text string) *TextMessage
Click to show internal directories.
Click to hide internal directories.