mejoras
This commit is contained in:
@@ -159,7 +159,7 @@ class WebhookTestSuite {
|
||||
'display_phone_number' => '573001234567',
|
||||
'phone_number_id' => WHATSAPP_PHONE_NUMBER_ID
|
||||
],
|
||||
'messages' => [
|
||||
'conversations' => [
|
||||
[
|
||||
'from' => '573009876543',
|
||||
'id' => 'wamid.test123',
|
||||
@@ -171,7 +171,7 @@ class WebhookTestSuite {
|
||||
]
|
||||
]
|
||||
],
|
||||
'field' => 'messages'
|
||||
'field' => 'conversations'
|
||||
]
|
||||
]
|
||||
]
|
||||
@@ -183,7 +183,7 @@ class WebhookTestSuite {
|
||||
throw new Exception("Estructura de payload incorrecta");
|
||||
}
|
||||
|
||||
if (!isset($validPayload['entry'][0]['changes'][0]['value']['messages'])) {
|
||||
if (!isset($validPayload['entry'][0]['changes'][0]['value']['conversations'])) {
|
||||
throw new Exception("Estructura de mensajes incorrecta");
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ class WebhookTestSuite {
|
||||
'changes' => [
|
||||
[
|
||||
'value' => [
|
||||
'messages' => [
|
||||
'conversations' => [
|
||||
[
|
||||
'from' => $testPhone,
|
||||
'id' => 'test_message_id',
|
||||
@@ -328,9 +328,9 @@ class WebhookTestSuite {
|
||||
[
|
||||
'changes' => [
|
||||
[
|
||||
'field' => 'messages',
|
||||
'field' => 'conversations',
|
||||
'value' => [
|
||||
'messages' => [
|
||||
'conversations' => [
|
||||
[
|
||||
'from' => $testPhone,
|
||||
'id' => '2001',
|
||||
@@ -383,9 +383,9 @@ class WebhookTestSuite {
|
||||
[
|
||||
'changes' => [
|
||||
[
|
||||
'field' => 'messages',
|
||||
'field' => 'conversations',
|
||||
'value' => [
|
||||
'messages' => [
|
||||
'conversations' => [
|
||||
[
|
||||
'from' => $testPhone,
|
||||
'id' => '2002',
|
||||
|
||||
Reference in New Issue
Block a user