@daolmedo/openclaw-twilio-whatsapp 1.1.21 → 1.1.22
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.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function splitMessage(text) {
|
|
|
58
58
|
return chunks;
|
|
59
59
|
}
|
|
60
60
|
async function sendTwilioWhatsappMessage(opts) {
|
|
61
|
-
const client = twilio(opts.accountSid, opts.authToken);
|
|
61
|
+
const client = twilio(opts.accountSid, opts.authToken, { timeout: 3e4 });
|
|
62
62
|
const from = opts.from.startsWith("whatsapp:") ? opts.from : `whatsapp:${opts.from}`;
|
|
63
63
|
const to = opts.to.startsWith("whatsapp:") ? opts.to : `whatsapp:${opts.to}`;
|
|
64
64
|
const chunks = opts.body ? splitMessage(opts.body) : [void 0];
|
|
@@ -502,9 +502,6 @@ ${text}`;
|
|
|
502
502
|
recordInboundSession: stored.channelRuntime.session.recordInboundSession,
|
|
503
503
|
dispatchReplyWithBufferedBlockDispatcher: stored.channelRuntime.reply.dispatchReplyWithBufferedBlockDispatcher,
|
|
504
504
|
delivery: {
|
|
505
|
-
durable: () => ({
|
|
506
|
-
to: senderAddress
|
|
507
|
-
}),
|
|
508
505
|
deliver: async (payload) => {
|
|
509
506
|
const outbound = payload;
|
|
510
507
|
const text = outbound.text ?? "";
|