E
E
Eugene2018-09-26 17:53:34
In contact with
Eugene, 2018-09-26 17:53:34

How to raise a server for callback api vk?

How to set up a server for Vkontakte callback api on your computer?
I am writing a bot for dialogs, it needs callback api to work. The documentation says that this requires a server that will accept requests and send a response. To do this, you need to specify the server address. Where can I get this address and how should the script (node.js) be run?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sgaynetdinov, 2018-09-26
@sgaynetdinov

https://ngrok.com/

K
Kirill Kudryavtsev, 2018-09-26
@Deissh

When developing, you can use LongPolling, a lot of libraries support switching out of the box.

E
Eugene, 2018-09-27
@ZeekSee

Use LongPoll instead of CallBack.
For a bot, I recommend using python and the vk_api library
There is documentation and examples of its use on github, the bot can be launched through a regular batch file)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question