Skip to content

Commit

Permalink
Fix voice handlers not firing
Browse files Browse the repository at this point in the history
  • Loading branch information
devandsev committed Apr 24, 2018
1 parent ab26c41 commit 10a33dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ func (b *Bot) handleMedia(m *Message) bool {
return true
}

if m.Voice != nil {
b.handle(OnVoice, m)
return true
}

if m.Audio != nil {
b.handle(OnAudio, m)
return true
Expand Down

0 comments on commit 10a33dd

Please sign in to comment.