gsusI / Telegram-Group-or-Channel-users-to-CSV

Given a user with credentials, this script grabs all the groups and channels for the given user, allows you to select one, and exports all users into a CSV file within the same directory. It also gives the option to add users to your groups or channels.
49 stars 48 forks source link

Users from Channels not getting pulled #7

Open mitulmehra opened 3 years ago

mitulmehra commented 3 years ago

Hi, The script is unable to pull users' data from the channels on which we don't have Chat Admin right. Below is the script error.

Error message >>>>>>>> raise MultiError(exceptions, results, requests) telethon.errors.common.MultiError: ([ChatAdminRequiredError('Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group (caused by GetParticipantsRequest)'),

Any way to circumvent this required privilege to pull users data ??

Thanks.