Type of the callback context.
Return value type.
Constructs a new TypeHandler.
Type of the callback context.
Return value type.
Function that evaluates whether an update matches.
Function invoked on match.
ProtectedcallbackThe underlying callback function to invoke on match.
ReadonlytypeThe custom type predicate function.
Evaluates the type predicate against the incoming update.
Incoming Telegram update.
true if the type predicate is satisfied.
Handler that matches updates based on an arbitrary type predicate function.
Example