Forichok / TelegramOnlineSpy

Simple telegram online spy logger bot
Mozilla Public License 2.0
393 stars 84 forks source link

hidden phone number #26

Open Yorksik opened 1 year ago

Yorksik commented 1 year ago

2022-10-25T05:08:30.886537+00:00 app[worker.1]: Traceback (most recent call last): 2022-10-25T05:08:30.886571+00:00 app[worker.1]: File "/app/spy.py", line 31, in <module> 2022-10-25T05:08:30.886821+00:00 app[worker.1]: entity=client.get_entity(destination_user_username) 2022-10-25T05:08:30.886858+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/telethon/sync.py", line 39, in syncified 2022-10-25T05:08:30.887090+00:00 app[worker.1]: return loop.run_until_complete(coro) 2022-10-25T05:08:30.887123+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete 2022-10-25T05:08:30.887481+00:00 app[worker.1]: return future.result() 2022-10-25T05:08:30.887509+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/telethon/client/users.py", line 335, in get_entity 2022-10-25T05:08:30.887819+00:00 app[worker.1]: result.append(await self._get_entity_from_string(x)) 2022-10-25T05:08:30.887835+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/telethon/client/users.py", line 553, in _get_entity_from_string 2022-10-25T05:08:30.888159+00:00 app[worker.1]: result = await self( 2022-10-25T05:08:30.888174+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/telethon/client/users.py", line 30, in __call__ 2022-10-25T05:08:30.888322+00:00 app[worker.1]: return await self._call(self._sender, request, ordered=ordered) 2022-10-25T05:08:30.888336+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/telethon/client/users.py", line 84, in _call 2022-10-25T05:08:30.888484+00:00 app[worker.1]: result = await future 2022-10-25T05:08:30.888590+00:00 app[worker.1]: telethon.errors.rpcerrorlist.FloodWaitError: A wait of 28725 seconds is required (caused by ResolveUsernameRequest)

I understand this error due to the fact that the user has hidden his phone number and now it is impossible to find him by this number. But in the telegram client, I see that the last seen time is not hidden. Please understand what this error means and how to get around it. It is especially interesting what this line conceives.

`2022-10-25T05:08:30.888590+00:00 app[worker.1]: telethon.errors.rpcerrorlist.FloodWaitError: A wait of 28725 seconds is required (caused by ResolveUsernameRequest)``