{"action":"created","issue":{"url":"https://api.github.com/repos/pyrogram/pyrogram/issues/38","repository_url":"https://api.github.com/repos/pyrogram/pyrogram","labels_url":"https://api.github.com/repos/pyrogram/pyrogram/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/pyrogram/pyrogram/issues/38/comments","events_url":"https://api.github.com/repos/pyrogram/pyrogram/issues/38/events","html_url":"https://github.com/pyrogram/pyrogram/issues/38","id":307641841,"number":38,"title":"Error loading contacts?","user":{"login":"windx13","id":10945320,"avatar_url":"https://avatars3.githubusercontent.com/u/10945320?v=4","gravatar_id":"","url":"https://api.github.com/users/windx13","html_url":"https://github.com/windx13","followers_url":"https://api.github.com/users/windx13/followers","following_url":"https://api.github.com/users/windx13/following{/other_user}","gists_url":"https://api.github.com/users/windx13/gists{/gist_id}","starred_url":"https://api.github.com/users/windx13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windx13/subscriptions","organizations_url":"https://api.github.com/users/windx13/orgs","repos_url":"https://api.github.com/users/windx13/repos","events_url":"https://api.github.com/users/windx13/events{/privacy}","received_events_url":"https://api.github.com/users/windx13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-22T13:26:45Z","updated_at":"2018-03-22T13:55:19Z","closed_at":null,"author_association":"NONE","body":"I'm trying to load a list of phone numbers into my account to check them afterwards: they are registered in Telegram or not. Here is my code:\r\n\r\n```\r\nlist_contact = []\r\nfor number in list_item:\r\n     list_contact.append(InputPhoneContact(phone=str(number), first_name=name_generate())\r\nresult = client.add_contacts(list_contact)\r\nprint(result)\r\n```\r\n\r\nThe conclusion is this:\r\n\r\n> {\r\n>     \"_\": \"types.contacts.ImportedContacts\",\r\n>     \"users\": [],\r\n>     \"popular_invites\": [],\r\n>     \"retry_contacts\": [\r\n>         6535756451881337856,\r\n>         6535756451881337860,\r\n> \t...\r\n>         6535756451881339844,\r\n>         6535756451881339852\r\n>     ],\r\n>     \"imported\": []\r\n> }\r\n\r\nFurther I carry out this code:\r\n\r\n```\r\nresult = client.get_contacts()\r\nprint(result)\r\n```\r\n\r\nThe conclusion is this:\r\n\r\n> {\r\n>     \"_\": \"types.contacts.Contacts\",\r\n>     \"users\": [],\r\n>     \"contacts\": [],\r\n>     \"saved_count\": 83\r\n> }\r\n\r\nMethod CheckPhone does not work for me, because with a large number of queries, I get an error FloodError. \r\n\r\n1. How can I check a large number of phone numbers?\r\n2.  When using method client.add_contacts , does the error occur?\r\n\r\nMy goal: to upload a list of phone numbers to Telegram contacts. After that, get those phone numbers that are registered with Telegram.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pyrogram/pyrogram/issues/comments/375314327","html_url":"https://github.com/pyrogram/pyrogram/issues/38#issuecomment-375314327","issue_url":"https://api.github.com/repos/pyrogram/pyrogram/issues/38","id":375314327,"user":{"login":"windx13","id":10945320,"avatar_url":"https://avatars3.githubusercontent.com/u/10945320?v=4","gravatar_id":"","url":"https://api.github.com/users/windx13","html_url":"https://github.com/windx13","followers_url":"https://api.github.com/users/windx13/followers","following_url":"https://api.github.com/users/windx13/following{/other_user}","gists_url":"https://api.github.com/users/windx13/gists{/gist_id}","starred_url":"https://api.github.com/users/windx13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windx13/subscriptions","organizations_url":"https://api.github.com/users/windx13/orgs","repos_url":"https://api.github.com/users/windx13/repos","events_url":"https://api.github.com/users/windx13/events{/privacy}","received_events_url":"https://api.github.com/users/windx13/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T13:55:19Z","updated_at":"2018-03-22T13:55:19Z","author_association":"NONE","body":"After 30 phone numbers downloaded in the account (in a cycle, 10 pieces each), the Telegram begins to return this:\r\n\r\nInquiry:\r\n\r\n> {\r\n>     \"_\": \"types.contacts.ImportedContacts\",\r\n>     \"users\": [],\r\n>     \"imported\": [],\r\n>     \"retry_contacts\": [\r\n>         6535766553982053376,\r\n>         6535766553982053380,\r\n>         6535766553982053384,\r\n>         6535766553982053388,\r\n>         6535766553982053392,\r\n>         6535766553982053396,\r\n>         6535766553982053400,\r\n>         6535766553982053404,\r\n>         6535766553982053408,\r\n>         6535766553982053412\r\n>     ],\r\n>     \"popular_invites\": []\r\n> }\r\n\r\nanswer:\r\n\r\n> {\r\n>     \"_\": \"types.contacts.Contacts\",\r\n>     \"users\": [],\r\n>     \"saved_count\": 79,\r\n>     \"contacts\": []\r\n> }"}}
{"actor":{"display_login":"windx13"}}