//Subscribe to messages sent by the user with the bot.on() method. bot.on('message', (event) => { const senderID = event.sender.id, message = event.message; if (message.text) { bot.sendTextMessage(senderID, "Hello world"); } });
//Subscribe to messages sent by the user with the bot.on() method. bot.on('message', (event) => { const senderID = event.sender.id, message = event.message; if (message.text) { bot.sendTextMessage(senderID, "Hello world"); } });