Documentation
¶
Overview ¶
Package push @Author arthur 15:52:00
Index ¶
Constants ¶
View Source
const ( ChannelDingDing = iota + 1 ChannelWeChat ChannelFeiShu ChannelSlack ChannelEmail ChannelTelegram )
View Source
const ( COLOR = "#8b0000" SUBNAME = "alarm" AUTHORLINK = "" ICON = "https://avatars.githubusercontent.com/u/104639309?s=200&v=4" FOOTER = "clickvisual" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator interface {
Send(notification view.Notification, alarm *db.Alarm, channel *db.AlarmChannel, oneTheLogs string) (err error)
}
type TelegramBot ¶ added in v0.3.1
type TelegramBot struct {
// contains filtered or unexported fields
}
func NewTelegram ¶ added in v0.3.1
func NewTelegram(token string) (*TelegramBot, error)
func (*TelegramBot) SendFile ¶ added in v0.3.1
func (tg *TelegramBot) SendFile(filePath, fileName, mime, caption string, to int64) error
func (*TelegramBot) SendMessage ¶ added in v0.3.1
func (tg *TelegramBot) SendMessage(msg string, to int64, markdown bool) error
Click to show internal directories.
Click to hide internal directories.