mirror of
https://github.com/woodchen-ink/Q58Bot.git
synced 2025-07-19 06:12:06 +08:00
添加更多日志
This commit is contained in:
parent
4291640190
commit
20238fab2e
@ -125,8 +125,10 @@ func RunMessageHandler() error {
|
||||
|
||||
for {
|
||||
err := func() error {
|
||||
log.Printf("Attempting to create bot with token: %s", core.BOT_TOKEN)
|
||||
bot, err := tgbotapi.NewBotAPI(core.BOT_TOKEN)
|
||||
if err != nil {
|
||||
log.Printf("Error details: %+v", err)
|
||||
return fmt.Errorf("failed to create bot: %w", err)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user