This commit is contained in:
lizandrogd
2026-01-21 10:57:02 -05:00
parent f6a62ce360
commit 5e9220590a
7 changed files with 159 additions and 5 deletions
+2
View File
@@ -70,6 +70,8 @@ try {
'message_type' => $msg['message_type'],
'content' => $msg['content'] ?? '',
'media_url' => (isset($msg['media_url']) && $msg['media_url']) ? (preg_match('#^https?://#i', $msg['media_url']) ? $msg['media_url'] : ("api/get_media.php?id=" . urlencode($msg['media_url']))) : null,
'filename' => $msg['filename'] ?? null,
'mime_type' => $msg['mime_type'] ?? null,
'status' => $msg['status'] ?? 'sent',
'created_at' => $msg['created_at'],
'time' => date('H:i', strtotime($msg['created_at'])),