Documentation ¶
Index ¶
Constants ¶
View Source
const (
Scheme = "telegram"
)
Scheme is the identifying part of this service's configuration URL
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Token string Preview bool `key:"preview" default:"Yes" desc:"If disabled, no web page preview will be displayed for URLs"` Notification bool `key:"notification" default:"Yes" desc:"If disabled, sends message silently"` ParseMode parseMode `key:"parsemode" default:"None" desc:"How the text message should be parsed"` Channels []string `key:"channels"` }
Config for use within the telegram plugin
func (*Config) Enums ¶
func (config *Config) Enums() map[string]types.EnumFormatter
Enums returns the fields that should use a corresponding EnumFormatter to Print/Parse their values
type SendMessagePayload ¶
type SendMessagePayload struct { Text string `json:"text"` ID string `json:"chat_id"` ParseMode string `json:"parse_mode,omitempty"` DisablePreview bool `json:"disable_web_page_preview"` DisableNotification bool `json:"disable_notification"` }
JSON to be used as a notification payload for the telegram notification service
Click to show internal directories.
Click to hide internal directories.