@adatechnology/meta-whatsapp-module 0.2.0-rc.20 → 0.2.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1969,6 +1969,16 @@ var WhatsAppChannelAdapter = class {
|
|
|
1969
1969
|
externalMessageId: result.waMessageId
|
|
1970
1970
|
};
|
|
1971
1971
|
}
|
|
1972
|
+
async sendInteractiveButtons(params) {
|
|
1973
|
+
const result = await this.translateErrors(() => this.messages.sendInteractiveButtons({
|
|
1974
|
+
to: params.to,
|
|
1975
|
+
bodyText: params.body,
|
|
1976
|
+
buttons: params.buttons
|
|
1977
|
+
}));
|
|
1978
|
+
return {
|
|
1979
|
+
externalMessageId: result.waMessageId
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1972
1982
|
/**
|
|
1973
1983
|
* Busca o binário da mídia — da Meta, ou do storage quando o id é do simulador.
|
|
1974
1984
|
*
|