@@ -58,11 +58,16 @@ export const sendChatReplyToWhatsApp = async ({
|
||||
const result = await executeClientSideAction({ to, credentials })(action)
|
||||
if (!result) continue
|
||||
const { input, newSessionState, messages, clientSideActions } =
|
||||
await continueBotFlow(result.replyToSend, {
|
||||
version: 2,
|
||||
state,
|
||||
textBubbleContentFormat: 'richText',
|
||||
})
|
||||
await continueBotFlow(
|
||||
result.replyToSend
|
||||
? { type: 'text', text: result.replyToSend }
|
||||
: undefined,
|
||||
{
|
||||
version: 2,
|
||||
state,
|
||||
textBubbleContentFormat: 'richText',
|
||||
}
|
||||
)
|
||||
|
||||
return sendChatReplyToWhatsApp({
|
||||
to,
|
||||
@@ -128,11 +133,16 @@ export const sendChatReplyToWhatsApp = async ({
|
||||
)
|
||||
if (!result) continue
|
||||
const { input, newSessionState, messages, clientSideActions } =
|
||||
await continueBotFlow(result.replyToSend, {
|
||||
version: 2,
|
||||
state,
|
||||
textBubbleContentFormat: 'richText',
|
||||
})
|
||||
await continueBotFlow(
|
||||
result.replyToSend
|
||||
? { type: 'text', text: result.replyToSend }
|
||||
: undefined,
|
||||
{
|
||||
version: 2,
|
||||
state,
|
||||
textBubbleContentFormat: 'richText',
|
||||
}
|
||||
)
|
||||
|
||||
return sendChatReplyToWhatsApp({
|
||||
to,
|
||||
|
||||
Reference in New Issue
Block a user