docs

# onStateOrSubstate

inline fun < I : O , O : State> BehaviourContextWithFSM < O >. onStateOrSubstate (handler: BehaviourWithFSMStateHandler < I , O >)
Content copied to clipboard

Add NON STRICT handler to list of available in future BehaviourContextWithFSM. Non strict means that for input State will be used KClass.isInstance and any inheritor of kClass will pass this requirement

## See also

dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourWithFSMStateHandlerHolder
dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextWithFSM