getChatMembersCount#

Returns: int

class aiogram.methods.get_chat_members_count.GetChatMembersCount(*, chat_id: Union[int, str], **extra_data: Any)[source]#

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

Source: https://core.telegram.org/bots/api#getchatmembercount

chat_id: Union[int, str]#

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

build_request(bot: Bot) Request[source]#

Usage#

As bot method#

result: int = await bot.get_chat_members_count(...)

Method as object#

Imports:

  • from aiogram.methods.get_chat_members_count import GetChatMembersCount

  • alias: from aiogram.methods import GetChatMembersCount

With specific bot#

result: int = await bot(GetChatMembersCount(...))