This commit is contained in:
lizandrogd
2026-01-21 08:28:54 -05:00
parent 7d6c3b4fb4
commit 45a11032f5
59 changed files with 315 additions and 315 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ $data = [
'type' => 'reaction',
'reaction' => ['message_id' => '5001', 'emoji' => '❤️']
];
$response = ['messages' => [['id' => 'out_msg_1']]];
$response = ['conversations' => [['id' => 'out_msg_1']]];
$foundUser = $db->fetch('SELECT * FROM users WHERE phone_number = :p', ['p' => $phone]);
echo "User found for outgoing reaction? " . ($foundUser ? 'yes' : 'no') . "\n";
@@ -71,7 +71,7 @@ $data2 = [
'context' => ['message_id' => '5002'],
'text' => ['body' => 'Gracias']
];
$response2 = ['messages' => [['id' => 'out_msg_2']]];
$response2 = ['conversations' => [['id' => 'out_msg_2']]];
$method->invokeArgs($service, [$data2, $response2]);
$conv2 = $db->fetch('SELECT * FROM conversations WHERE message_id = :mid', ['mid' => 'out_msg_2']);
if ($conv2) {