Middleware mixin

Should be applied to every class witch intended to be used as middleware

A new class instance will be created on every Update receive. isCallbackQuery helps to distinguish callback_query message from direct user input isCmd indicates, if user message is a command?

Properties

hashCode int
The hash code for this object.
no setterinherited
isCallbackQuery bool
getter/setter pair
isCmd bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(Update data, TelegramEx telegram) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited