Open poulad opened 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.
Message
Update
Also, updates of types other than [Edited]MessageUpdate are never considered as command.
[Edited]MessageUpdate
btw, CommandBase.CanHandleCommand doesn't need to be virtual.
CommandBase.CanHandleCommand
virtual
Methods of a command class (canHandle, parse, handle) should only get a
Message
as input not theUpdate
because it could be confusing to the user.Also, updates of types other than
[Edited]MessageUpdate
are never considered as command.