setListener

suspend fun setListener(allowedUpdates: List<UpdateType>? = null, block: HandlingBehaviourBlock)

Function to define the actions that will be applied to updates when they are being processed. When set, it starts an update processing cycle.

Parameters

block

action that will be applied.