rapierorg / telegram-bot-swift

Telegram Bot SDK for Swift (unofficial)
https://github.com/rapierorg/telegram-bot-swift/wiki
Apache License 2.0
374 stars 63 forks source link

Router should return false if no rules were matched #14

Closed zmeyc closed 8 years ago

zmeyc commented 8 years ago

Currently it returns true in some cases

zmeyc commented 8 years ago

Now it works as expected. Default "unmatched" handler prints "Command not found" message and returns true because it has processed the command. It can be overridden to return false.