E
E
Eugene2018-09-30 18:33:02
Amazon Web Services
Eugene, 2018-09-30 18:33:02

How to host a server for callback API VKontakte?

Share your experience on how to raise a server for the callback API bot for VK. The option to make a bot on the longpool API is not suitable. I'm new to back-end, it would be nice to hear detailed instructions from someone who understands.
Actually, what's the problem.
I have a VPS on Amazon AWS and a bot script for working with the VKontakte Callback API. To make it work, you need to "hang up" the server to which requests will be sent in the group settings. I managed to make the script available for access from the Internet (by clicking on the link http://IP_VPS:Port).By "hang" the address in this format is impossible. When trying to VK display a message about the invalidity of the address. I was told that I needed the link format h ttp://IP_VPS/Port. But I don't know how to translate the link into the correct format. All I could find is information that port forwarding is needed. Is this true, and if so, how to do it? What programs will be needed for this and what actions need to be taken?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-09-30
@you_are_enot

You ideally want an API Gateway + lambda. So it's cheaper and more reliable
Well, or an ec2 instance with an open inbound rule on your port in the security group

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question