SecretChatKtx - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / SecretChatKtx

SecretChatKtx

interface SecretChatKtx : BaseKtx

Interface for access TdApi.SecretChat extension functions. Can be used alongside with other extension interfaces of the package. Must contain TelegramFlow instance field to access its functionality

Properties

api Instance of the TelegramFlow connecting extensions to the Telegram Clientabstract val api: TelegramFlow

Functions

close Suspend function, which closes a secret chat, effectively transferring its state to secretChatStateClosed.open suspend fun SecretChat.close(): Unit
create Suspend function, which returns an existing chat corresponding to a known secret chat.open suspend fun SecretChat.create(): Chat
get Suspend function, which returns information about a secret chat by its identifier. This is an offline request.open suspend fun SecretChat.get(): SecretChat

Inheritors

TelegramKtx Interface for access all Telegram objects extension functions. Contains 182 extensionsinterface TelegramKtx : BasicGroupKtx, CallKtx, ChatKtx, FileKtx, MessageKtx, NotificationGroupKtx, ProxyKtx, SecretChatKtx, SupergroupKtx, UserKtx, CommonKtx