Answer the question
In order to leave comments, you need to log in
How to do a quick mailing of messages in the VK community?
I have a bot in the VK community, I have implemented the notification function. It works through the shelve library
import shelve
with shelve.open('notifies/users') as shlv:
users = list(shlv.items())
for k in range(len(users)):
if users[k][1] == '1':
vk.messages.send(peer_id=str(users[k][0]), random_id=random.getrandbits(32), message='уведомление')
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