添加更多日志

This commit is contained in:
wood chen 2024-09-19 22:03:17 +08:00
parent 4291640190
commit 20238fab2e

View File

@ -125,8 +125,10 @@ func RunMessageHandler() error {
for { for {
err := func() error { err := func() error {
log.Printf("Attempting to create bot with token: %s", core.BOT_TOKEN)
bot, err := tgbotapi.NewBotAPI(core.BOT_TOKEN) bot, err := tgbotapi.NewBotAPI(core.BOT_TOKEN)
if err != nil { if err != nil {
log.Printf("Error details: %+v", err)
return fmt.Errorf("failed to create bot: %w", err) return fmt.Errorf("failed to create bot: %w", err)
} }