Deepthought
Deepthought copied to clipboard
how add new contact
hi.
i want agregate one new contact but i cant do.
i use this code.
TLInputPhoneContact impc = new TLInputPhoneContact();
impc.setClientId( Math.abs(new Random().nextLong()) );
impc.setFirstName("test name");
impc.setLastName("test lastname...");
impc.setPhone("+529611178076");
TLImportedContacts imc = new TLImportedContacts();
You need to import them using method ContactsImportContacts