From c87e4683db4a99d8c2e349ddb1099a86b09a7369 Mon Sep 17 00:00:00 2001 From: Akulij Date: Thu, 27 Mar 2025 20:23:17 +0800 Subject: [PATCH] log message entities --- cmd/app/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/app/main.go b/cmd/app/main.go index 9541727..ec4bf34 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -83,6 +83,7 @@ func handleMessage(bc BotController, update tgbotapi.Update) { bc.db.Model(&user).Update("MsgCounter", user.MsgCounter+1) log.Printf("User[%d] messages: %d", user.ID, user.MsgCounter) log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text) + log.Printf("[Entities] %s", update.Message.Entities) possibleCommand := strings.Split(update.Message.Text, " ")[0] args := strings.Split(update.Message.Text, " ")[1:]