From 3c6cc213af99d3275ca245e0f908c9f4809a0794 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 11 Oct 2019 10:40:51 +0800 Subject: [PATCH] fix --- bot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.go b/bot.go index d380c11..1d90ac7 100644 --- a/bot.go +++ b/bot.go @@ -678,7 +678,7 @@ func botVaultHelp(m *tb.Message) { func botVault(m *tb.Message) { for _, e := range m.Entities { - if e.EntityType == tb.EntityMention { + if e.Type == tb.EntityMention { log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID) } }