1
1
1ffiest2019-09-18 19:15:38
Python
1ffiest, 2019-09-18 19:15:38

Is it possible for VK bot to work regardless of VK LongPoll API events?

There is a bot code for VK that starts working with the API with , which means that the program only works when an event comes from the vk API. That is, the program cannot read input from the console, send messages to users at the conditional 8:00, and generally work when the bot does not receive messages. Is there a way to send a message every time it's 8:00:00 AM on the server running the bot and read the input from the console? for event in longpoll.listen():

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0ralo, 2019-09-18
@0ralo

You can of course, you just need to use threads (library - threading)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question