ValueError: Could not find the input entity for <telethon.tl.types.PeerUser object at 0x7f972ec6e400>.

See original GitHub issue

This is my Code:

	client(ImportChatInviteRequest(gruppoF))
except Exception:
	print("Gia' ci sono")
chatinvite=client(CheckChatInviteRequest(gruppoF))
gruppoF=chatinvite.chat.id
result=client(GetParticipantsRequest(channel=gruppoF,filter=types.ChannelParticipantsRecent(),offset=42,limit=20000,hash=0))```

The error:
ValueError: Could not find the input entity for <telethon.tl.types.PeerUser object at 0x7f972ec6e400>. Please read https://docs.telethon.dev/en/latest/concepts/entities.html to find out more details.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
thekillgfxcommented, Mar 21, 2020

The error shows you a link, did you check it?

1reaction
SonicCodescommented, Feb 27, 2021

@Lonami I have encountered the same problem. On new entities you have to try again. which means it returns from cache.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: Could not find the input entity for PeerUser
I am not familiar with Telethon, but the docs referenced in the error state. To “encounter” an ID, you would have to “find...
Read more >
How to use the telethon.tl.functions.channels function in ... - Snyk
How to use the telethon.tl.functions.channels function in Telethon ... pass raise ValueError( 'Could not find the input entity for {!r}.
Read more >
Python telethon.tl.types.PeerChannel() Examples
This page shows Python examples of telethon.tl.types. ... try: return await message.client.get_entity(message.from_id) except ValueError: # Not in database.
Read more >
Could not find the input entity for <teletho...anycodings
Questions : Could not find the input entity for < telethon.tl.types.PeerUser object at ... I am getting the error ValueError: Could programming ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found