Documentation
¶
Index ¶
Constants ¶
View Source
const ( // BetaGoUpdateChanID 发送更新消息的频道ID BetaGoUpdateChanID = "8937461610423450" // NotifierChanID 发送消息的频道ID NotifierChanID = "8583973157097178" )
Variables ¶
View Source
var ( CommitMessage = os.Getenv("COM_MES") HTMLURL = os.Getenv("HTML_URL") CommentsURL = os.Getenv("COM_URL") RobotName = os.Getenv("ROBOT_NAME") RobotID = os.Getenv("ROBOT_ID") TestChanID = os.Getenv("TEST_CHAN_ID") )
var
@param CommitMessage
View Source
var GlobalSession = khl.New(os.Getenv("BOTAPI"), plog.NewLogger(&log.Logger{ Level: log.TraceLevel, Writer: &log.ConsoleWriter{}, }))
GlobalSession 全局共享session
Functions ¶
This section is empty.
Types ¶
type CardMessageColModule ¶ added in v0.0.5
type CardMessageColModule struct {
Type string `json:"type"`
Text []struct {
Type string `json:"type"`
Cols int `json:"cols"`
Fields []struct {
Type string `json:"type"`
Content string `json:"content"`
}
}
}
CardMessageColModule khl cardmessage Col
type CardMessageModule ¶
type CardMessageModule struct {
Type string `json:"type"`
Title string `json:"title"`
Src string `json:"src"`
Cover string `json:"cover"`
}
CardMessageModule khl cardmessage
type CardMessageTextModule ¶
type CardMessageTextModule struct {
Type string `json:"type"`
Text struct {
Type string `json:"type"`
Content string `json:"content"`
} `json:"text"`
}
CardMessageTextModule khl cardmessage Text
Click to show internal directories.
Click to hide internal directories.