Browse Source

handle errors

master
Nicolas Massé 6 years ago
parent
commit
1e25ba1710
  1. 4
      main.go

4
main.go

@ -213,6 +213,10 @@ func main() {
}
dispatchMessage(bot, update.Message)
replyWithMessage(bot, update.Message, viper.GetString("MsgThankYouMedia"))
} else {
log.Printf("[%s] cannot handle this type of message", username)
replyToCommandWithMessage(bot, update.Message, viper.GetString("MsgDoNotUnderstand"))
continue
}
}
}

Loading…
Cancel
Save