A
A
a2019-09-13 00:30:35
Python
a, 2019-09-13 00:30:35

How do I send a message to all members of a group?

I reviewed all the vk_api methods, but did not understand how to send mass messages to all subscribers.

from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType
import vk_api

vk = vk_api.VkApi(token="токен группы")

vk._auth_token()

vk.get_api()

longpoll = VkBotLongPoll(vk, id группы)

while True:

    for event in longpoll.listen():
        if event.type == VkBotEventType.MESSAGE_NEW:

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2019-09-13
@opium

It's not allowed
Post on the wall everyone will see in the feed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question