DenizShabani / telegramscraper

Scraper and adder for Telegram supporting multiple accounts at the same time. Adds via Telegram API and only by username. For adding via ID and not needing Telgram API contact me.
https://t.me/GitHubScriptsHelp
MIT License
371 stars 168 forks source link

can not scrap channel members #44

Open imedianet opened 1 year ago

imedianet commented 1 year ago

File "g:\Tekegram scraper\full tools\scraper.py", line 104, in for member in c.iter_participants(group, filter=ChannelParticipantsAdmins): File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 87, in next return self.client.loop.run_until_complete(self.anext()) File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete return future.result() File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 74, in anext if await self._load_next_chunk(): File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\chats.py", line 202, in _load_next_chunk self.total = (await self.client(functions.channels.GetParticipantsRequest( File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "C:\Users\ALKABTIN\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 83, in _call result = await future telethon.errors.rpcerrorlist.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)