{"action":"closed","issue":{"url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/983","repository_url":"https://api.github.com/repos/LonamiWebs/Telethon","labels_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/983/labels{/name}","comments_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/983/comments","events_url":"https://api.github.com/repos/LonamiWebs/Telethon/issues/983/events","html_url":"https://github.com/LonamiWebs/Telethon/issues/983","id":356795696,"node_id":"MDU6SXNzdWUzNTY3OTU2OTY=","number":983,"title":"Cannot get_entity by number","user":{"login":"mdenushev","id":31730567,"node_id":"MDQ6VXNlcjMxNzMwNTY3","avatar_url":"https://avatars2.githubusercontent.com/u/31730567?v=4","gravatar_id":"","url":"https://api.github.com/users/mdenushev","html_url":"https://github.com/mdenushev","followers_url":"https://api.github.com/users/mdenushev/followers","following_url":"https://api.github.com/users/mdenushev/following{/other_user}","gists_url":"https://api.github.com/users/mdenushev/gists{/gist_id}","starred_url":"https://api.github.com/users/mdenushev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdenushev/subscriptions","organizations_url":"https://api.github.com/users/mdenushev/orgs","repos_url":"https://api.github.com/users/mdenushev/repos","events_url":"https://api.github.com/users/mdenushev/events{/privacy}","received_events_url":"https://api.github.com/users/mdenushev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-04T12:52:44Z","updated_at":"2018-09-04T13:02:23Z","closed_at":"2018-09-04T13:02:23Z","author_association":"NONE","body":"I'm trying to get entity by number like you described [here](https://telethon.readthedocs.io/en/latest/extra/examples/telegram-client.html#getting-entities)\r\n```python\r\nTraceback (most recent call last):\r\n  File \"D:/github/wa-tg-numbers/main.py\", line 23, in <module>\r\n    client.get_peer_id('+xxxxx')\r\n  File \"D:\\github\\wa-tg-numbers\\venv\\lib\\site-packages\\telethon\\client\\users.py\", line 296, in get_peer_id\r\n    peer = self.get_input_entity(peer)\r\n  File \"D:\\github\\wa-tg-numbers\\venv\\lib\\site-packages\\telethon\\client\\users.py\", line 260, in get_input_entity\r\n    self._get_entity_from_string(peer))\r\n  File \"D:\\github\\wa-tg-numbers\\venv\\lib\\site-packages\\telethon\\client\\users.py\", line 360, in _get_entity_from_string\r\n    'Cannot find any entity corresponding to \"{}\"'.format(string)\r\nValueError: Cannot find any entity corresponding to \"+xxxxx\"\r\n```\r\nThis number registered in Telegram\r\n\r\n`telethon-sync == 1.0.4`\r\n"}}
{"actor":{"display_login":"Lonami"}}