@ -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: {
|
||||
|
Reference in New Issue
Block a user