def check(phone_number): try: contact = InputPhoneContact(client_id = 0, phone = phone_number, first_name="سوسو", last_name="last_test") contacts = client(functions.contacts.ImportContactsRequest([contact])) username = contacts.to_dict()['users'][0]['username'] dell = client(functions.contacts.DeleteContactsRequest(id=[username])) return username
except:
res = "__err__"
return res