checkCreatedPublicChatsLimit - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / checkCreatedPublicChatsLimit

checkCreatedPublicChatsLimit

suspend fun TelegramFlow.checkCreatedPublicChatsLimit(type: PublicChatType?): Unit

Suspend function, which checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached.

Parameters

type - Type of the public chats, for which to check the limit.