createNewSecretChat - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / createNewSecretChat

createNewSecretChat

suspend fun TelegramFlow.createNewSecretChat(userId: Int): Chat

Suspend function, which creates a new secret chat. Returns the newly created chat.

Parameters

userId - Identifier of the target user.

Return Chat A chat. (Can be a private chat, basic group, supergroup, or secret chat.)