The issue is because there is no forwarding in the UpdateHandler:handle function. I solved the issue by adding the following line to handle method just before the starting of the whileclause.
internal fun handle(update: Update) {
GlobalScope.launch { onAnyUpdate?.invoke(update) } //added this line and it worked
when {
/* content of the when clause not included for brevity */
} //end of when
}//end of handle
The issue is because there is no forwarding in the
UpdateHandler:handle
function. I solved the issue by adding the following line tohandle
method just before the starting of thewhile
clause.