var username = "@health_coach111"; //replace with the Instagram username var message = "Hello, I need your help"; //replace with the message you want to send var xhr = new XMLHttpRequest(); xhr.open("POST", "https://www.instagram.com/"+@health_coach111+"/send_message/"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function() { if (xhr.readyState === 4 && xhr.status === 200) { console.log("Message sent successfully!"); } else { console.log("Error sending message. Please check the username and message."); } }; xhr.send("message="+hello I need Help);
Previous Post Next Post