test
This commit is contained in:
parent
3c6cc213af
commit
c59a27bbb8
13
bot.go
13
bot.go
@ -677,12 +677,15 @@ func botVaultHelp(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func botVault(m *tb.Message) {
|
func botVault(m *tb.Message) {
|
||||||
for _, e := range m.Entities {
|
b, _ := json.Marshal(m)
|
||||||
if e.Type == tb.EntityMention {
|
log.Printf("botVault (msg) :\n%s\n", string(b))
|
||||||
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 - %d\n", e.User.Username, e.User.ID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
*/
|
||||||
|
|
||||||
if !m.Private() {
|
if !m.Private() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user