Python
2
Вклад в тег
var promise = new Promise((resolve,reject)=>{
request.post({
url: "https://api.vk.com/method/execute",
qs: {
'code': 'var ans1 = API.account.getProfileInfo(); var ans2 = API.groups.getById({"group_ids": "dev_wh" }); return [ans1,ans2];',
'access_token': TOKEN,
'v': V,
}
}, function(err, response, body) {
resolve(body)
})
})
var body = await promise;
console.log(body);
print(vk_session.method('messages.getConversationMembers',{'peer_id': 2000000001}))
import vk_api
from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
vk_session = vk_api.VkApi(token = '22281337')
vk = vk_session.get_api()