1
0
Files
rust_vk_to_grafana/request.vkscript
2024-09-09 21:23:45 +03:00

30 lines
2.9 KiB
Plaintext

var offset = {1};
var peer_id = {2};
var hist = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 0, rev: 1}).items;
var hist_2 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 200, rev: 1}).items;
var hist_3 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 400, rev: 1}).items;
var hist_4 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 600, rev: 1}).items;
var hist_5 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 800, rev: 1}).items;
var hist_6 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1000, rev: 1}).items;
var hist_7 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1200, rev: 1}).items;
var hist_8 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1400, rev: 1}).items;
var hist_9 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1600, rev: 1}).items;
var hist_10 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 1800, rev: 1}).items;
var hist_11 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2000, rev: 1}).items;
var hist_12 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2200, rev: 1}).items;
var hist_13 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2400, rev: 1}).items;
var hist_14 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2600, rev: 1}).items;
var hist_15 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 2800, rev: 1}).items;
var hist_16 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3000, rev: 1}).items;
var hist_17 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3200, rev: 1}).items;
var hist_18 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3400, rev: 1}).items;
var hist_19 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3600, rev: 1}).items;
var hist_20 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 3800, rev: 1}).items;
var hist_21 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4000, rev: 1}).items;
var hist_22 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4200, rev: 1}).items;
var hist_23 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4400, rev: 1}).items;
var hist_24 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4600, rev: 1}).items;
var hist_25 = API.messages.getHistory({peer_id: peer_id, count: 200, offset: offset + 4800, rev: 1}).items;
return hist + hist_2 + hist_3 + hist_4 + hist_5 + hist_6 + hist_7 + hist_8 + hist_9 + hist_10 + hist_11 + hist_12 + hist_13 + hist_14 + hist_15 + hist_16 + hist_17 + hist_18 + hist_19 + hist_20 + hist_21 + hist_22 + hist_23 + hist_24 + hist_25;