newly created users? idk, it works very weirdly for me and i can't even pinpoint why.
await client.get_entity(user)
is all i ever do and user is either set to inputted id|username or replied.sender_id or message.chat_id. i know for a fact that the id is a correct user id. however it says it cannot find the entity.
that's not all tho. it only fails for some users, and only in the first try. after it fails for the first time, it starts to always work (at least for that user) until a client restart. there is no fail if username is used. same goes for iter_messages etc probably because they also use the get_entity or smth.
https://t.me/TelethonChat/562752 https://t.me/TelethonChat/560662
i don't think this case is related to that but again i didn't quite understand your response to it in my case tho i get the user id on the fly calling get_entity on message.chat_id and it raises an exception
You're not allowed to use id if it's not cached.
Обсуждают сегодня