I'd like to export a list of current members of the channel or group. Is it possible through the UI, alternative client (such as Bettergram), Telegram API or Bots API?
I've seen this feature on some marketing apps (such as Telegram Auto), but I prefer to do it on my own.
One of the use cases is when moving members from channel to the group (without manually clicking all of the members), so the question assumes I've admin rights, but if the method will work for other channels/groups, that's even better.
How such an export can be done?
Best Answer
You can try Telethon which can extract all the members of a given group and saves it in an SQLite database. You need to be an admin for the channel of course.
You can get it with a method like:
or method like this:
However, first, you need to obtain your api_id and api_hash using MTProto by logging to https://my.telegram.org/ with your existing Telegram account and getting credentials.
Resources: