fix(bot): 🔥 fix rev

This commit is contained in:
Leifer Mendez
2022-12-27 13:42:22 +01:00
parent f2137d310d
commit 484c8c3bde
8 changed files with 143 additions and 47 deletions

View File

@@ -105,6 +105,29 @@ class VenomProvider extends ProviderClass {
}
}
/**
* Enviar botones
* @private
* @param {*} number
* @param {*} message
* @param {*} buttons []
* @returns
*/
sendButtons = async (number, message, buttons = []) => {
const NOTE_VENOM_BUTTON = [
`Actualmente VENOM tiene problemas con la API`,
`para el envio de Botones`,
].join('\n')
console.log(`[NOTA]: ${NOTE_VENOM_BUTTON}`)
const buttonToStr = [message]
.concat(buttons.map((btn) => `${btn.body}`))
.join(`\n`)
return this.vendor.sendText(number, buttonToStr)
// return this.vendor.sendButtons(number, "Title", buttons1, "Description");
}
/**
* Enviar imagen o multimedia
* @param {*} number