1
0

🐛 Fixed comparison of entity type in IsCommand helper

This commit is contained in:
Maxim Lebedev 2017-12-22 20:05:38 +05:00
parent 66a5e4e310
commit db9688eb9f
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F

View File

@ -9,7 +9,7 @@ func (msg *Message) IsCommand() bool {
}
return msg.Entities[0].Offset == 0 &&
msg.Entities[0].Type != EntityBotCommand
msg.Entities[0].Type == EntityBotCommand
}
func (msg *Message) Command() string {