Closed nzdev03 closed 1 year ago
You are using raw API, which means the results you are getting come directly from Telegram, and Telethon is not changing them in any way (other than adapting some input parameters where needed, all while respecting the intended values). Unfortunately this means it's something Telethon cannot "fix" and it's just the way Telegram's API works.
Code that causes the issue
Expected behavior
The returned
help.UserInfo
object being returned.Actual behavior
Raises
telethon.errors.rpcerrorlist.UserInvalidError
.Traceback
Telethon version
1.29.2
Python version
Python 3.11.3
Operating system (including distribution name and version)
macOS Ventura 13.4.1 (c) (M2 Chip)
Other details
I attempted to provide a
Peer
object,Channel
object, username string andUser
object. I also tried providing a User ID (as both string and int) to no avail (there was a valid access hash for the user ID). It appears functions.help.GetUserInfoRequest fails entirely. I tried the before mentioned process on both the account logged into the Telethon application and also on other accounts via entity-like objects and strings/ints.Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.