TelegramBot.getChatMembersCount

Get the number of members in a chat

  1. int getChatMembersCount(T chat_id)
    struct TelegramBot
    @trusted
    int
    getChatMembersCount
    (
    T
    )
  2. int getChatMembersCount(GetChatMembersCountMethod m)

Parameters

chat_id T

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

Return Value

Type: int

number of members

Throws

TelegramBotException on errors

See Also

Meta