You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't like that different Update Types call something like ...Command... It is not a Command, it should not be called that way.
Maybe we can change this to ...Update or something... So when there is a new Update with type poll, it looks for a PollUpdate class, if it is an inline_query it looks for InlineQueryUpdate etc.
When defining a
PollCommand extends UserCommand
and added viaaddCommandClass()
,this classes execute method is also called, when an Update of type
Poll
comes in.I think on Update Types, it should check, if the registered class is extending SystemCommand.
The text was updated successfully, but these errors were encountered: