chatDraftMessageFlow - libtd-ktx

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


libtd-ktx / kotlinx.telegram.flows / chatDraftMessageFlow

chatDraftMessageFlow

fun TelegramFlow.chatDraftMessageFlow(): Flow<UpdateChatDraftMessage>

emits UpdateChatDraftMessage if a chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn’t be applied.