Documentation ¶
Index ¶
Constants ¶
View Source
const DingtalkAddr = "https://oapi.dingtalk.com/robot/send"
View Source
const TelegramAddr = "https://api.telegram.org"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dingtalk ¶
type Dingtalk struct {
// contains filtered or unexported fields
}
func NewDingtalk ¶
type DingtalkAt ¶
type DingtalkMarkdown ¶
type DingtalkReq ¶
type DingtalkReq struct { MsgType string `json:"msgtype"` // such as: "text", "markdown" At *DingtalkAt `json:"at,omitempty"` Text *DingtalkText `json:"text,omitempty"` Markdown *DingtalkMarkdown `json:"markdown,omitempty"` }
type DingtalkResp ¶
type DingtalkText ¶
type DingtalkText struct {
Content string `json:"content"`
}
type Telegram ¶ added in v1.11.0
type Telegram struct {
// contains filtered or unexported fields
}
func NewTelegram ¶ added in v1.11.0
type TelegramReq ¶ added in v1.11.0
type TelegramReq struct { ChatId string `json:"chat_id"` MessageThreadId int `json:"message_thread_id,omitempty"` Text string `json:"text"` ParseMode string `json:"parse_mode,omitempty"` Entities any `json:"entities,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup any `json:"reply_markup,omitempty"` }
type TelegramResp ¶ added in v1.11.0
Click to show internal directories.
Click to hide internal directories.