From c59a27bbb8d3c412eab9ccf076beab3155ddaac8 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 11 Oct 2019 10:44:30 +0800 Subject: [PATCH] test --- bot.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bot.go b/bot.go index 1d90ac7..2a8f385 100644 --- a/bot.go +++ b/bot.go @@ -677,12 +677,15 @@ func botVaultHelp(m *tb.Message) { } func botVault(m *tb.Message) { - for _, e := range m.Entities { - if e.Type == tb.EntityMention { - log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID) + b, _ := json.Marshal(m) + log.Printf("botVault (msg) :\n%s\n", string(b)) + /* + for _, e := range m.Entities { + if e.Type == tb.EntityMention { + log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID) + } } - } - + */ if !m.Private() { return }