explicit telegram enable flag

This commit is contained in:
2026-02-12 17:39:38 +03:00
parent 9d374a97cd
commit 4e1d1ca35f
3 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func main() {
defer stop()
// Telegram bot
if cfg.Telegram.Token != "" {
if cfg.Telegram.Enabled {
tgBot, err := telegram.NewBot(cfg.Telegram, memorySvc, client, cfg.Memos.URL, cfg.Memos.PublicURL, loc, logger)
if err != nil {
logger.Error("failed to create telegram bot", "error", err)