Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ValueError:找不到与“0”对应的任何实体+;XXXXXXXXXX";_Python_Telethon - Fatal编程技术网

Python ValueError:找不到与“0”对应的任何实体+;XXXXXXXXXX";

Python ValueError:找不到与“0”对应的任何实体+;XXXXXXXXXX";,python,telethon,Python,Telethon,我想从用户的电话号码中获取用户的电报Id。用户电话号码保存在我的联系人列表中,我们从不相互交流。但是用户不知道我的联系电话。 我可以获取用户的id吗 for mobile in newuser['Mobile']: mob = '+91' + str(mobile) user = await clients.get_entity(mob) print(user) 您必须保存联系人未清除的代码用户还需要保存我的联系人号码吗?以前我试过了,但

我想从用户的电话号码中获取用户的电报Id。用户电话号码保存在我的联系人列表中,我们从不相互交流。但是用户不知道我的联系电话。 我可以获取用户的id吗

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

您必须保存联系人未清除的代码用户还需要保存我的联系人号码吗?以前我试过了,但成功了。不,他们不需要存钱