fix: meta ignorado en sendTemplateMessage con rawComponents
Cuando se usaban rawComponents, el parámetro $meta no se agregaba al payload, causando que los mensajes del turnero se guardaran con canal='bot' y aparecieran en conversations.php. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a08e2002c4
commit
4b054c5afc
@@ -111,6 +111,10 @@ class WhatsAppService
|
|||||||
'template' => $template
|
'template' => $template
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (!empty($meta) && is_array($meta)) {
|
||||||
|
$data['__app_meta'] = $meta;
|
||||||
|
}
|
||||||
|
|
||||||
return $dryRun ? $data : $this->sendMessage($data);
|
return $dryRun ? $data : $this->sendMessage($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user