This commit is contained in:
shoopea 2019-10-11 10:44:30 +08:00
parent 3c6cc213af
commit c59a27bbb8

5
bot.go
View File

@ -677,12 +677,15 @@ func botVaultHelp(m *tb.Message) {
} }
func botVault(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 { for _, e := range m.Entities {
if e.Type == tb.EntityMention { if e.Type == tb.EntityMention {
log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID) log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID)
} }
} }
*/
if !m.Private() { if !m.Private() {
return return
} }