{
"one_time": false,
"buttons": [
[
{
"action": {
"type": "text",
"label": "Профиль"
},
"color": "positive"
},
{
"action": {
"type": "text",
"label": "Магазин"
},
"color": "positive"
}
],
[
{
"action": {
"type": "text",
"label": "Склад"
},
"color": "positive"
},
{
"action": {
"type": "text",
"label": "Фарм"
},
"color": "positive"
},
{
"action": {
"type": "text",
"label": "Помощь"
},
"color": "positive"
}
]
]
}
var groups = [-122590247, -111703515];
groups.forEach(function(item) {
wall_post(item);
});
function wall_post(id) {
VK.api("wall.post", {
owner_id: id,
signed: 1,
message: textmessage,
attachments: images,
from_group: 0
}, function (data) {});
}