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
362 stars 166 forks source link

Value error #10

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello. When I run scraper.py, i get value error, after enter choice. I try public group name, private group link, but not working. Can you help me?

(~) Choose an account to scrape members

(0) +3630768621

(~) Enter choice: 0 Enter the name of the group without the @: https://t.me/+8yebeAUk3mFjNmFk Traceback (most recent call last): File "C:\Users\spice\PycharmProjects\telegramscraper\scraper.py", line 79, in group = c.get_entity(group_name) File "C:\Users\spice\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\sync.py", line 39, in syncified return loop.run_until_complete(coro) File "C:\Users\spice\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:\Users\spice\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\client\users.py", line 335, in get_entity result.append(await self._get_entity_from_string(x)) File "C:\Users\spice\AppData\Local\Programs\Python\Python39\lib\site-packages\telethon\client\users.py", line 574, in _get_entity_from_string raise ValueError( ValueError: Cannot find any entity corresponding to "https://t.me/+8yebeAUk3mFjNmFk"

Process finished with exit code 1

moumen100 commented 1 year ago

remove http:// use only t.me/+8yebeAUk3mFjNmFk