newChatFlow - libtd-ktx

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


libtd-ktx / kotlinx.telegram.flows / newChatFlow

newChatFlow

fun TelegramFlow.newChatFlow(): Flow<Chat>

emits Chat if a new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates.