TelegramBots / Telegram.Bot.Framework

Simple framework for building Telegram bots
MIT License
98 stars 43 forks source link

Refactoring the `CommandBase` #8

Open poulad opened 7 years ago

poulad commented 7 years ago

Methods of a command class (canHandle, parse, handle) should only get a Message as input not the Update because it could be confusing to the user.

Also, updates of types other than [Edited]MessageUpdate are never considered as command.

btw, CommandBase.CanHandleCommand doesn't need to be virtual.