Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Cannot find any entity corresponding to "[phone number]" #18

Open
n-OlegS opened this issue Feb 25, 2022 · 0 comments
Open

Comments

@n-OlegS
Copy link

n-OlegS commented Feb 25, 2022

Whenever I add a contact and do /start it gives me the following message:

Unhandled exception on start
Traceback (most recent call last):
File "/Users/oleg/Library/Python/3.10/lib/python/site-packages/telethon/client/updates.py", line 467, in _dispatch_update
await callback(event)
File "/Users/oleg/PycharmProjects/tgsp/TelegramOnlineSpy/spy.py", line 137, in start
account = await client.get_entity(contact.id)
File "/Users/oleg/Library/Python/3.10/lib/python/site-packages/telethon/client/users.py", line 335, in get_entity
result.append(await self._get_entity_from_string(x))
File "/Users/oleg/Library/Python/3.10/lib/python/site-packages/telethon/client/users.py", line 574, in _get_entity_from_string
raise ValueError(
ValueError: Cannot find any entity corresponding to "+11111111111"

The phone number is fake I am using my real one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant