clarify telegram channel ID param and documentation

This commit is contained in:
Dmitry Verkhoturov
2021-12-19 13:56:16 -06:00
committed by Umputun
parent e1d629191e
commit f43dfd57e0
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ type NotifyGroup struct {
Admins []string `long:"admins" env:"ADMINS" description:"types of admin notifications" choice:"none" choice:"telegram" choice:"email" choice:"slack" choice:"webhook" default:"none" env-delim:","` //nolint
QueueSize int `long:"queue" env:"QUEUE" description:"size of notification queue" default:"100"`
Telegram struct {
Channel string `long:"chan" env:"CHAN" description:"telegram channel for admin notifications"`
Channel string `long:"chan" env:"CHAN" description:"ID of telegram channel for admin notifications"`
API string `long:"api" env:"API" default:"https://api.telegram.org/bot" description:"[deprecated, not used] telegram api prefix"`
Token string `long:"token" env:"TOKEN" description:"[deprecated, use --telegram.token] telegram token"`
Timeout time.Duration `long:"timeout" env:"TIMEOUT" default:"5s" description:"[deprecated, use --telegram.timeout] telegram timeout"`