termsOfServiceFlow - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.flows / termsOfServiceFlow

termsOfServiceFlow

fun TelegramFlow.termsOfServiceFlow(): Flow<UpdateTermsOfService>

emits UpdateTermsOfService if new terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason &quot;Decline ToS update&quot;.