Last updated 1 year ago
const response = await fetch('https://base_url/chats/sendMessageText', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "message": "hello", "jid": "receivernumber" }), }); const data = await response.json();