1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-25 02:42:28 +02:00
OpenIntegrations/docs/en/md/Telegram/Administration/Get-participant-count.md
2024-06-05 12:58:00 +03:00

749 B

sidebar_position
6

Get participant count

Gets the total number of chat participants

Function GetParticipantCount(Val Token, Val ChatID) Export

Parameter CLI option Type Destination
Token --token String Bot token
ChatID --chat String, Number Target chat ID

Returns: Key-Value Pair - Serialized JSON response from Telegram

	
 Token = "6129457865:AAFyzNYOAFbu...";
 ChannelID = "@testsichee";
 
 Result = OPI_Telegram.GetParticipantCount(Token, ChannelID);

	
 
 oint telegram GetParticipantCount --token "6129457865:AAFyzNYOAFbu..." --chat %chat%



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