Getting participants of a group/channel
GramJS provides two friendly methods to get a list of participants from a channel a group.
The interface looks like this. you can read more about filters here https://core.telegram.org/type/ChannelParticipantsFilter
which returns an array with a .total
attribute returning the real number of users in the group.
you can also use an iterator with iterParticipants
Examples:
Using iterParticipants
iterParticipants
Using getParticipants
getParticipants
Last updated