Skip to content

Commit

Permalink
refactor: now prodive nice log message when invalid tg token
Browse files Browse the repository at this point in the history
  • Loading branch information
nlif-m committed Aug 29, 2023
1 parent cff3e2e commit 84cf347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tg.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func TgBot(ag Atomgen, atomfileUpdateChan chan bool) {
bot, err := tgbotapi.NewBotAPI(ag.cfg.TelegramBotToken)
if err != nil {
log.Panic(err)
log.Fatalf("Failed to connect to telegram api using telegram bot token, check provided token. %s", err)
}

bot.Debug = false
Expand Down

0 comments on commit 84cf347

Please sign in to comment.