Answer the question
In order to leave comments, you need to log in
How to automate a bot for vk?
Dear, in general (I quarreled with Google, Yandex banned, other search engines ignore me) there is a written bot for VK that automatically answers my messages (autoresponder) and there is an idea to write a bot for the community, but the question is how to make the bot constantly spin and not be tied to pc?
Answer the question
In order to leave comments, you need to log in
VK documentation on creating a chatbot .
You will need a server on which your software will constantly work - listen to incoming requests and, in response to them, call VK API methods.
With a large community, you may run into the problem of too many requests per unit of time. Therefore, consider the task queue mechanism: when a new message arrives, do not process it immediately, but simply save it to the queue. And let a separate "worker" process take one job from the queue and write a response to them.
There is also a suitable hosting
. You will need to read the Callback API documentation , then I advise you to read the article on Habrahabr , as well as read the documentation for the above chat bot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question