Telethon: GetFullUserRequest throws UserIdInvalidError
I’m using telethon v12.2.
I want to fetch sender user information every incoming UpdateShortMessage
event using
self.invoke(GetFullUserRequest(InputUser(update_object.user_id, access_hash)))
when user knows each other (appear in contact list), it run successfully. But, when the sender is not appear in contact list, it throws error :
telethon.telethon.errors.rpc_errors_400.UserIdInvalidError: (UserIdInvalidError(...), 'Invalid object ID for an user. Make sure to pass the right types.')
How can i handle that ?
Then i found this inputUserForeign, is that method implemented in telethon ?
Thanks.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 28 (12 by maintainers)
Error: telethon.errors.rpc_error_list.UserIdInvalidError: (UserIdInvalidError(…), ‘Invalid object ID for an user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited’)
is there any solution for above error.