T
T
Timur Salavdiev2021-05-08 12:08:50
Python
Timur Salavdiev, 2021-05-08 12:08:50

Continuous messages?

Is it possible in any way, using Python, to organize an uninterrupted chain of different messages in vk to one friend?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Shavukhin, 2021-05-08
@stav26

import vk_api
vk = vk_api.VkApi(token=<ваш токен>)

messages = [<ссобщение1>, <сообщение2>...<сообщениеN>]
for i in messages:
  vk.method('messages.send', {'peer_id':<айди вашего друга>, message:i, 'random_id':0})

But VK has its own limits and captcha

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question