addRecentlyFoundChat - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / addRecentlyFoundChat

addRecentlyFoundChat

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

Suspend function, which adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first.

Parameters

chatId - Identifier of the chat to add.