D
D
Dmitry2017-08-17 18:23:43
Python
Dmitry, 2017-08-17 18:23:43

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

3 answer(s)
S
Sergey Sokolov, 2017-08-17
@ipatov_dn

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.

P
Puma Thailand, 2017-08-17
@opium

spin it on the server

K
Konstantin Sazhenov, 2017-08-22
@sakost

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 question

Ask a Question

731 491 924 answers to any question