mirror of
https://github.com/woodchen-ink/Q58Bot.git
synced 2025-07-19 14:22:05 +08:00
添加更多日志
This commit is contained in:
parent
4291640190
commit
20238fab2e
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user