Documentation
¶
Index ¶
- Variables
- func NewActionCard2Msg(text string, title string, actionTitle1 string, actionURL1 string, ...) string
- func NewActionCard3Msg(text string, title string, actionTitle1 string, actionURL1 string, ...) string
- func NewActionCard4Msg(text string, title string, actionTitle1 string, actionURL1 string, ...) string
- func NewActionCard5Msg(text string, title string, actionTitle1 string, actionURL1 string, ...) string
- func NewActionCard6Msg(text string, title string, buttonTitle1 string, buttonUrl1 string, ...) string
- func NewActionCardMsg(text string, title string, singleTitle string, singleURL string) string
- func NewImageMsg(photoURL string) string
- func NewLinkMsg(text string, title string, picUrl string, msgUrl string) string
- func NewMarkdownMsg(title string, text string) string
- func NewTask(task Task)
- func NewTextMsg(content string) string
- func RunBeaverBot(port string, e *Event)
- type Condition
- type Event
- type Handle
- func (h *Handle) DeleteGroupMessages(robotCode string, processQueryKeys []string, conversationId string) (statusCode int, bodyData string, err error)
- func (h *Handle) DeletePrivateMessages(robotCode string, processQueryKeys []string) (statusCode int, bodyData string, err error)
- func (h *Handle) GetID() int
- func (h *Handle) QueryGroupMessages(robotCode string, conversationId string, processQueryKey string, ...) (statusCode int, bodyData string, err error)
- func (h *Handle) QueryPrivateMessages(robotCode string, processQueryKeys string) (statusCode int, bodyData string, err error)
- func (h *Handle) SendGroupMessages(robotCode string, msg string, conversationId string) (statusCode int, bodyData string, err error)
- func (h *Handle) SendPrivateMessages(robotCode string, msg string, userId []string) (statusCode int, bodyData string, err error)
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var AllHandle []*Handle
View Source
var Tasks []Task
Functions ¶
func NewActionCard2Msg ¶
func NewActionCard3Msg ¶
func NewActionCard4Msg ¶
func NewActionCard5Msg ¶
func NewActionCard6Msg ¶
func NewActionCardMsg ¶
func NewImageMsg ¶
func NewMarkdownMsg ¶
func NewTextMsg ¶
func RunBeaverBot ¶
Types ¶
type Event ¶
type Event struct {
HandleID int
ConversationId string `json:"conversationId"`
AtUsers []struct {
DingtalkId string `json:"dingtalkId"`
StaffId string `json:"staffId"`
} `json:"atUsers"`
ChatbotCorpId string `json:"chatbotCorpId"`
ChatbotUserId string `json:"chatbotUserId"`
MsgId string `json:"msgId"`
SenderNick string `json:"senderNick"`
IsAdmin bool `json:"isAdmin"`
SenderStaffId string `json:"senderStaffId"`
SessionWebhookExpiredTime int64 `json:"sessionWebhookExpiredTime"`
CreateAt int64 `json:"createAt"`
SenderCorpId string `json:"senderCorpId"`
ConversationType string `json:"conversationType"`
SenderId string `json:"senderId"`
ConversationTitle string `json:"conversationTitle"`
IsInAtList bool `json:"isInAtList"`
SessionWebhook string `json:"sessionWebhook"`
Text struct {
Content string `json:"content"`
} `json:"text"`
Msgtype string `json:"msgtype"`
// contains filtered or unexported fields
}
Event 整个事件信息
type Handle ¶
func (*Handle) DeleteGroupMessages ¶
func (h *Handle) DeleteGroupMessages(robotCode string, processQueryKeys []string, conversationId string) (statusCode int, bodyData string, err error)
DeleteGroupMessages 批量撤回群聊消息
func (*Handle) DeletePrivateMessages ¶
func (h *Handle) DeletePrivateMessages(robotCode string, processQueryKeys []string) (statusCode int, bodyData string, err error)
DeletePrivateMessages 批量撤回单聊消息
func (*Handle) QueryGroupMessages ¶
func (h *Handle) QueryGroupMessages(robotCode string, conversationId string, processQueryKey string, maxResults string, nextToken string) (statusCode int, bodyData string, err error)
QueryGroupMessages 查询企业机器人群聊消息用户已读状态
func (*Handle) QueryPrivateMessages ¶
func (h *Handle) QueryPrivateMessages(robotCode string, processQueryKeys string) (statusCode int, bodyData string, err error)
QueryPrivateMessages 批量查询机器人单单聊消息是否已读
Click to show internal directories.
Click to hide internal directories.
