add templates from main

This commit is contained in:
2022-12-27 02:30:32 -06:00
parent d951232a65
commit 1a4122ffce
23 changed files with 856 additions and 88 deletions

View File

@@ -78,6 +78,7 @@ const sendMessageButton = async (client, number = null, text = null, actionButto
number = cleanNumber(number)
const { title = null, message = null, footer = null, buttons = [] } = actionButtons;
let button = new Buttons(remplazos(message, client),[...buttons], remplazos(title, client), remplazos(footer, client));
await readChat(number, message, actionButtons)
client.sendMessage(number, button);
console.log(`⚡⚡⚡ Enviando mensajes (botones)....`);
// console.log("sendMessageButton.");