Answer the question
In order to leave comments, you need to log in
How to make sure that the VK bot does not spam when users are added to the conversation in bulk?
The bot has a greeting that it gives out when the user is invited to the conversation, if you add, for example, 50 participants at a time, it sends 50 SMS.
I want that when "a lot" of events about an invite came, he would simply be silent, and not spam, and if there were 2-3 people, then he would answer.
Tell me, how can I catch the number of requests per second, what can I do to regulate this process?
Answer the question
In order to leave comments, you need to log in
if events arrive at the same time, they will be in an array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question