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

Could not find the input entity for PeerUser #13

Open
rajil opened this issue Jan 14, 2023 · 0 comments
Open

Could not find the input entity for PeerUser #13

rajil opened this issue Jan 14, 2023 · 0 comments

Comments

@rajil
Copy link

rajil commented Jan 14, 2023

Unfortunately, it is throwing up an error.

$ python3 tgmount.py --list-documents --id 793392913 --limit 10
Traceback (most recent call last):
  File "tgmount.py", line 168, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "tgmount.py", line 59, in main
    await list_documents(await client(),
  File "/home/media/tgmount/tgmount/tgmount/actions.py", line 39, in list_documents
    entity = await client.get_entity(id)
  File "/home/media/.local/lib/python3.8/site-packages/telethon/client/users.py", line 292, in get_entity
    inputs.append(await self.get_input_entity(x))
  File "/home/media/.local/lib/python3.8/site-packages/telethon/client/users.py", line 466, in get_input_entity
    raise ValueError(
ValueError: Could not find the input entity for PeerUser(user_id=793392913) (PeerUser). Please read https://docs.telethon.dev/en/stable/concepts/entities.html to find out more details.

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