ValueError: Cannot find any entity corresponding to "+xxxxxxxxxxx"

1.2k Views Asked by At

I want to get the telegram Id of the user from their phone number. The user phone number is saved in my contact list and we never interact with each other. But my contact number is not known to the user. can I fetch the id of the user?

    for mobile in newuser['Mobile']:
        mob = '+91' + str(mobile)
        user = await clients.get_entity(mob)
        print(user)
0

There are 0 best solutions below