libtd-ktx / kotlinx.telegram.extensions / CallKtx
CallKtx
interface CallKtx :
BaseKtx
Interface for access TdApi.Call 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
accept | Suspend function, which accepts an incoming call.open suspend fun Call .accept(protocol: CallProtocol ?): Unit |
discard | Suspend function, which discards a call.open suspend fun Call .discard(isDisconnected: Boolean , duration: Int , connectionId: Long ): Unit |
sendDebugInformation | Suspend function, which sends debug information for a call.open suspend fun Call .sendDebugInformation(debugInformation: String ?): Unit |
sendRating | Suspend function, which sends a call rating.open suspend fun Call .sendRating(rating: Int , comment: String ?, problems: Array < CallProblem >?): Unit |
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 |