libtd-ktx / kotlinx.telegram.coroutines / close
close
suspend fun TelegramFlow.close(): Unit
Suspend function, which closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent.