Telethon converts the types automatically, InputUserSelf, InputPeerSelf, id, username, User are all accepted for Peer type fields
However, if I use await client.me() to get the object, I get a UserIdInvalidError exception, and if I use wait client.get_entity(username) , then everything works fine ;/
You know that you can't promote yourself right?
Обсуждают сегодня