P
P
Pipka0910910912017-06-14 17:04:51
Classmates
Pipka091091091, 2017-06-14 17:04:51

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

1 answer(s)
P
Pipka091091091, 2017-06-15
@Pipka091091091

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 question

Ask a Question

731 491 924 answers to any question