Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelperConfig ¶
type HelperConfig struct { HelperType string `yaml:"helper_type"` AlarmURL string `yaml:"alarm_url"` ExtraHeader string `yaml:"extra_header"` ExtraHeaderValue string `yaml:"extra_header_value"` }
HelperConfig this struct contains the information to configure the helper used by the bot
type TelegramBotConfig ¶
type TelegramBotConfig struct { BotToken string `yaml:"bot_token"` AllowedUsers []int `yaml:"allowed_users"` }
TelegramBotConfig configuration for the telegram bot
func (*TelegramBotConfig) CanAccessBot ¶
CanAccessBot checks and returns if the user is allowed to access the bot and sends a notification if the user isn't allowed
Click to show internal directories.
Click to hide internal directories.