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

@ -68,7 +68,7 @@ export const startWhatsAppSession = async ({
(publicTypebot.settings.whatsApp?.startCondition?.comparisons.length ??
0) > 0 &&
messageMatchStartCondition(
incomingMessage ?? '',
incomingMessage ?? { type: 'text', text: '' },
publicTypebot.settings.whatsApp?.startCondition
)
)
@ -90,13 +90,13 @@ export const startWhatsAppSession = async ({
return startSession({
version: 2,
message: incomingMessage,
startParams: {
type: 'live',
publicId: publicTypebot.typebot.publicId as string,
isOnlyRegistering: false,
isStreamEnabled: false,
textBubbleContentFormat: 'richText',
message: incomingMessage,
},
initialSessionState: {
whatsApp: {