Documentation ¶
Index ¶
- type Robot
- func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
- func (r Robot) SendLink(title, text, messageURL, picURL string) error
- func (r Robot) SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error
- func (r Robot) SendText(content string, atMobiles []string, isAtAll bool) error
- func (r *Robot) SetSecret(secret string)
- type Roboter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Robot ¶
type Robot struct {
// contains filtered or unexported fields
}
Robot represents a dingtalk custom robot that can send messages to groups.
func (Robot) SendActionCard ¶
func (r Robot) SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error
SendActionCard send a action card type message.
func (Robot) SendMarkdown ¶
SendMarkdown send a markdown type message.
type Roboter ¶
type Roboter interface { SendText(content string, atMobiles []string, isAtAll bool) error SendLink(title, text, messageURL, picURL string) error SendMarkdown(title, text string, atMobiles []string, isAtAll bool) error SendActionCard(title, text, singleTitle, singleURL, btnOrientation, hideAvatar string) error SetSecret(secret string) }
Roboter is the interface implemented by Robot that can send multiple types of messages.
Click to show internal directories.
Click to hide internal directories.