V
V
vitalyuspensky2020-06-18 17:09:48
Bots
vitalyuspensky, 2020-06-18 17:09:48

How to set up a VK chatbot so that it sends a message after a while?

There is a bot. It is necessary to make it so that when a command is sent, it sends a message after a while.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Guerro69, 2020-06-20
@Guerro69

Using pyrhon as an example,
use asyncio:

import asyncio
>>>
await asyncio.sleep(Время задержки)
api.messages.send(random_id=0, peer_id=event.obj.peer_id, message='Ваше сообщение')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question