Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTelegramLinksPreviewDisable = false
View Source
const DefaultTelegramNotificationDisable = false
View Source
const DefaultTelegramURL = "https://api.telegram.org/bot"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Whether Telegram integration is enabled.
Enabled bool `toml:"enabled"`
// The Telegram Bot URL, should not need to be changed.
URL string `toml:"url"`
// The Telegram Bot Token, can be obtained From @BotFather.
Token string `toml:"token"`
// The default channel, can be overridden per alert.
ChatId string `toml:"chat-id"`
// Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
ParseMode string `toml:"parse-mode"`
// Disables link previews for links in this message
DisableWebPagePreview bool `toml:"disable-web-page-preview"`
// Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
DisableNotification bool `toml:"disable-notification"`
// Whether all alerts should automatically post to Telegram
Global bool `toml:"global"`
// Whether all alerts should automatically use stateChangesOnly mode.
// Only applies if global is also set.
StateChangesOnly bool `toml:"state-changes-only"`
}
Click to show internal directories.
Click to hide internal directories.