This commit is contained in:
shoopea 2019-10-11 10:50:40 +08:00
parent c59a27bbb8
commit d849a5620d

10
bot.go
View File

@ -679,13 +679,11 @@ func botVaultHelp(m *tb.Message) {
func botVault(m *tb.Message) {
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)
}
for _, e := range m.Entities {
if e.Type == tb.EntityMention {
log.Printf("botVault (user) : %s\n", m.Text[e.Offset:e.Offset+e.Length])
}
*/
}
if !m.Private() {
return
}