F
F
Franco Mannino2019-04-22 10:03:35
API
Franco Mannino, 2019-04-22 10:03:35

How to fix a request to the VK API and get rid of the server error?

The goal is to send messages on behalf of the group to the VKontakte group dialog
I make a request

https://api.vk.com/method/messages.send?chat_id=99&random_id=20607840408&message=Тестовое сообщение&access_token=ключ_доступа_для_группы&v=5.95

And I get a response:
"Internal server error"
- the first drawing.
The token, of course, is not the same as written here, but received in a group, as in the second figure.
Bot options as in the third figure. And of course the bot
was added to conversation 99 with the url https://vk.com/im?peers=ХХХХХХХХ&sel=c99 (99), message - and message gets into the desired dialog. And the https request, as I wrote above, gives an internal server error. Can't figure out how to deal with this.
5cbd67b2c7832195781773.png5cbd6521eae09358446078.png5cbd67c359554928682279.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Franco Mannino, 2019-04-22
@garinov

Found the answer at https://lolzteam.net/threads/555934/

5. In the first field, you need to insert the id of the conversation, but not yours, but the bot, that is, in order, they were invited to the first conversation - id 1 to the second - id 2, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question