leaveChat - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / leaveChat

leaveChat

suspend fun TelegramFlow.leaveChat(chatId: Long): Unit

Suspend function, which removes current user from chat members. Private and secret chats can’t be left using this method.

Parameters

chatId - Chat identifier.