Answer the question
In order to leave comments, you need to log in
How to set a Vector for the contacts.importContacts method?
There is a contacts.importContacts method related to the UserAPI.
I use the telegram-mtproto library:
https://github.com/zerobias/telegram-mtproto
In one of the questions I saw this library:
let contact = {
client_id: 1, //long
phone: 'phone', //string
first_name: 'name', //string
last_name: 'name' //strings
};
let cont = new tl.TypeVector({type: 'InputContact', list: [contact]});
return client.callApi('contacts.importContacts', cont, true);
Answer the question
In order to leave comments, you need to log in
Found a solution.
Answer: no way, it's better to make bots for VK
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question