diff --git a/server/tgbot/config/config.go b/server/tgbot/config/config.go index 299cb83..37d32cd 100644 --- a/server/tgbot/config/config.go +++ b/server/tgbot/config/config.go @@ -24,6 +24,7 @@ func LoadConfig() { if err != nil { Cfg.WhiteIds = []int64{} Cfg.BlackIds = []int64{} + Cfg.HostTG = "https://api.telegram.org" buf, _ = json.MarshalIndent(Cfg, "", " ") if buf != nil { os.WriteFile(fn, buf, 0666) @@ -34,4 +35,7 @@ func LoadConfig() { if err != nil { log.TLogln("Error read tg config:", err) } + if Cfg.HostTG == "" { + Cfg.HostTG = "https://api.telegram.org" + } }