LonamiWebs / Telethon

Pure Python 3 MTProto API Telegram client library, for bots too!

Home Page:https://docs.telethon.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find the input entity

miguel-hub1 opened this issue · comments

Description

Sometimes I will not be able to use the function:
clienteTelegram.get_entity(idChat)
I get the following error, I always use the same group ID but sometimes it works and sometimes it doesn't is it a bug or what can I do?
ValueError: Could not find the input entity for . Please read https://telethon.readthedocs.io/en/latest/extra/basic/entities.html to find out more details.

Checklist

  • This is a documentation problem, not a question or a bug report.
  • I have searched for this issue before posting it and there isn't a duplicate.

The problem is documented in the link from the error. There is nothing in the documentation to fix.

The documentation link gives the following error:
404 Not Found

You are browsing the documentation of telethon. The documentation page you are looking for was not found.

Also the problem happens to be in MacOS, because the same code I have implemented works windows but it doesn't work on Mac.

My bad, I hadn't clicked the link.

In any case, the current URL is correct:

'docs.telethon.dev/en/stable/concepts/entities.html to'

so you're most likely using a (very) old version of Telethon.

As the page explains, if the entity is not in cache, it won't work.