openChat - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / openChat

openChat

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

Suspend function, which informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats).

Parameters

chatId - Chat identifier.