Answer the question
In order to leave comments, you need to log in
Whether check it is possible to write to the user, or not?
Error:
var z = JSON.parse(bisas)
^
SyntaxError: Unexpected token o in JSON at position 1
Code:
for(let m in base.bs){
if(base.bs[m].notifications == true) {
console .log(base.bs[m].id)
const bisas = request(" https://api.vk.com/method/messages.isMessagesFromG... ");
var z = JSON.parse(bisas)
let allowed = Number(z.response.is_allowed)
console.log(allowed)
Everything seems to be correct, why does it give such an error?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question