2
0

Add attachments option to text input (#1608)

Closes #854
This commit is contained in:
Baptiste Arnaud
2024-06-26 10:13:38 +02:00
committed by GitHub
parent 80da7af4f1
commit 6db0464fd7
88 changed files with 2959 additions and 735 deletions

View File

@@ -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,