Answer the question
In order to leave comments, you need to log in
Error sending message via botAPI json format?
Hello everyone, when sending a POST request to https://botapi.ok.ru/me/messages?access_token=TOKEN
{
"recipient": {"chat_id":"c68462177834691"},
"message": {"text":" Hello"}
}
Gives an error, json is copied from the example, I replaced the ID.
{
"error": "proto.payload",
"message": "Invalid JSON"
}
Answer the question
In order to leave comments, you need to log in
I figured it out myself, in the example the ID with "-" is indicated, I indicated it with a letter, which I think is not correct documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question