Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question