(url, options)
| 1 | const axios = require('axios') |
| 2 | |
| 3 | const getBuffer = async(url, options) => { |
| 4 | try { |
| 5 | options ? options : {} |
| 6 | var res = await axios({ |
| 7 | method: 'get', |
| 8 | url, |
| 9 | headers: { |
| 10 | 'DNT': 1, |
| 11 | 'Upgrade-Insecure-Request': 1 |
| 12 | }, |
| 13 | ...options, |
| 14 | responseType: 'arraybuffer' |
| 15 | }) |
| 16 | return res.data |
| 17 | } catch (e) { |
| 18 | console.log(e) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | const getGroupAdmins = (participants) => { |
| 23 | var admins = [] |