Skip to main content

Get participant count

Gets the total number of chat participants

Function GetParticipantCount(Val Token, Val ChatID) Export

ParameterCLI optionTypeDescription
Token--tokenStringBot token
ChatID--chatString, NumberTarget chat ID

Returns: Map Of KeyAndValue - Serialized JSON response from Telegram


Code example
    Token     = "6129457865:AAFyzNYOAFbu...";
ChannelID = "@testsichee";

Result = OPI_Telegram.GetParticipantCount(Token, ChannelID);
CLI command example
    
oint telegram GetParticipantCount --token "6129457865:AAFyzNYOAFbu..." --chat %chat%

Result
{
"ok": true,
"result": 2
}