Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeLink = "link" MsgTypeMarkdown = "markdown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkMessage ¶
type MarkdownMessage ¶
type Message ¶
type Message struct { MsgType string `json:"msgtype,omitempty"` Text *TextMessage `json:"text,omitempty"` Link *LinkMessage `json:"link,omitempty"` Markdown *MarkdownMessage `json:"markdown,omitempty"` At *AtMessage `json:"at,omitempty"` }
func NewLinkMessage ¶
创建链接消息
type TextMessage ¶
type TextMessage struct {
Content string `json:"content,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.