K
K
Kendric Folkin2020-10-19 10:33:04
Python
Kendric Folkin, 2020-10-19 10:33:04

Newsletter for VK bot PYTHON?

How to make a newsletter to people who have written at least one message?
That is, a person writes something, the bot writes his id into a text document, and then when I write the command !mail *text*, the bot sends a message to everyone who is written in the text box. help me please

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Purgaev, 2020-10-31
@kendric

You can just send to all subscribers via user_ids in messages.send, if someone did not write to the bot, then he will not be able to write to them. (if the bot is connected to the community)
It’s not difficult with a text document either, you make a file, write the id into it separated by a comma, then read everything that is in this file to the mailing command and shove it into user_ids when sending a message.

V
Vladislav, 2020-10-19
@cr1gger

This is how your question sounds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question