getChatMembersCount

suspend fun TelegramBotApiClient.getChatMembersCount(requestBody: GetChatMembersCountRequest): TelegramResponse<Int>

Use this method to get the number of members in a chat. Returns Int on success.

suspend fun TelegramBotApiClient.getChatMembersCount(chatId: Int): TelegramResponse<Int>

Use this method to get the number of members in a chat. Returns Int on success.

Parameters

chatId

Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)