Cobalt
Cobalt copied to clipboard
Your account may be restricted soon.
showing the message in whatspp like "Your account may be restricted soon."
@Synchronized public ResponseMessage sendMessageV3(MessageDTO msg){
... message sending logic
try { Thread.sleep(Duration.ofSeconds(30)); } catch (InterruptedException e) { log.error("Exception in MessageService.sendMessageV3() ==>> InterruptedException = {}", e.getMessage()); e.printStackTrace(); }
}
i am using like above, for every message i am delaying 30 secs and send method is synchronized so at a time one thread can send the message.
one more point, i registered with india number and sending kenya numbers not in my contacts, may be this is the issue.
can any one please suggest, how to overcome this issue.
Thank you in advance.