Debug: Add logs to trace Telegram initialization
This commit is contained in:
parent
14489b6afd
commit
e5e60f73c2
@ -16,6 +16,7 @@ import (
|
||||
func Telegram(svc *svc.ServiceContext) {
|
||||
logger.Infof("Telegram Config Enable: %v", svc.Config.Telegram.Enable)
|
||||
if !svc.Config.Telegram.Enable {
|
||||
logger.Info("Telegram disabled, skipping initialization")
|
||||
return
|
||||
}
|
||||
|
||||
@ -45,6 +46,7 @@ func Telegram(svc *svc.ServiceContext) {
|
||||
return
|
||||
}
|
||||
|
||||
logger.Info("Initializing Telegram Bot API...")
|
||||
bot, err := tgbotapi.NewBotAPI(usedToken)
|
||||
if err != nil {
|
||||
logger.Error("[Init Telegram Config] New Bot API Error: ", logger.Field("error", err.Error()))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user