Merge pull request #135 from devandsev/voice-handlers-fix

Fix voice handlers not firing
This commit is contained in:
Ian Byrd 2018-06-03 13:11:04 +03:00 committed by GitHub
commit 743778f69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
bot.go
View File

@ -398,6 +398,11 @@ func (b *Bot) handleMedia(m *Message) bool {
return true return true
} }
if m.Voice != nil {
b.handle(OnVoice, m)
return true
}
if m.Audio != nil { if m.Audio != nil {
b.handle(OnAudio, m) b.handle(OnAudio, m)
return true return true