Skip to content

Instantly share code, notes, and snippets.

View iwonz's full-sized avatar

Ivan Zimin iwonz

View GitHub Profile
@iwonz
iwonz / folders.js
Created June 9, 2024 13:43
Create folders with user from specified friends lists in messenger on VK
const CONFIG = [
{ folderName: '🤝', listIds: [1] },
{ folderName: '🏉', listIds: [2, 3, 4, 5, 6] },
];
const getFolder = async (name) => {
let folders = await vkApi.api('messages.getFolders', { with_peers: 1 });
let folder = folders.items.find((f) => f.name === name);