getChatMemberCount

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

Api reference

Parameters

chatId

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