Skip to content

Commit

Permalink
Merge pull request tucnak#135 from devandsev/voice-handlers-fix
Browse files Browse the repository at this point in the history
Fix voice handlers not firing
  • Loading branch information
Ian Byrd authored Jun 3, 2018
2 parents ab26c41 + 10a33dd commit 743778f
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 743778f

Please sign in to comment.