Ciao, su questa funzione:
codice:async function getStartChat() { const response = await fetch("lib/bot.php"). then(response => response.text()). then(data => { return data }). catch(err => console.log(err)); }
mi restituisce questo:
[object Promise]
perchè?