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 "Decline ToS update".