getChatMemberCount¶
Returns: int
- class litegram.methods.get_chat_member_count.GetChatMemberCount(*, chat_id: ChatIdUnion, **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: ChatIdUnion¶
Unique identifier for the target chat or username of the target supergroup or channel (in the format
@channelusername)
Usage¶
As bot method¶
result: int = await bot.get_chat_member_count(...)
Method as object¶
Imports:
from litegram.methods.get_chat_member_count import GetChatMemberCountalias:
from litegram.methods import GetChatMemberCount
With specific bot¶
result: int = await bot(GetChatMemberCount(...))