I want to get a channel’s members’ count but I don’t know which method should I use?
I am not admin in that channel, I just want to get the count number.
EDIT:I am using main telegram api, not telegram Bot api
I want to get a channel’s members’ count but I don’t know which method should I use?
I am not admin in that channel, I just want to get the count number.
EDIT:I am using main telegram api, not telegram Bot api
3
Answers
You can use getChatMembersCount method.
It worked for me 🙂
It is possible to do it also through GetFullChannelRequest in telethon
or to write it without async/await
Also as above was said, it is also feasible by bot-api with
getChatMembersCount method. You can curl it or use python to query needed url
with python code can look like this one:
where
<your-bot-api-token>
is token provided by BotFather, and<channel-name>
is channel name which amount of subscribers you want to know (of course, everything without "<>")to check firstly, simply curl it: