How to get Telegram channel users list with Telegram Bot API

M.Shahrokhi picture M.Shahrokhi · Nov 21, 2015 · Viewed 86.7k times · Source

Anybody give a starter on how may I get information about users from my telegram bot. Imagine my bot in an admin user in my channel and I want to get my channel user list or to be noticed when a new user joins. How can I do that. Telegram's documents are so unorganized. So far I have looked at these:

But none of these really helps.

Answer

apadana picture apadana · Jun 14, 2017

In order to get user list, you need to use telegram API.

Telegram API is fairly complicated. There are some clients which can get the job done much faster.

For python, there is Telethon, and the method to get channel users is:

get_full_channel.