From ceff6995412ef92432c9f5cbb56fc5a329ae94c2 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 11 Oct 2019 10:39:26 +0800 Subject: [PATCH] test vault --- bot.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bot.go b/bot.go index 86fd856..883ddf3 100644 --- a/bot.go +++ b/bot.go @@ -677,6 +677,12 @@ func botVaultHelp(m *tb.Message) { } func botVault(m *tb.Message) { + for _, e := range m.Entities { + if e.EntityType == tb.EntityMention { + log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.ID) + } + } + if !m.Private() { return }