time_zone;
$created_on = get_date($date);
if ($message['attachment_type'] === 'gif') {
$attachment = json_decode($message['attachments']);
$message_attachment = '['.$attachment->gif_url.']
';
} else if ($message['attachment_type'] === 'sticker') {
$attachment = json_decode($message['attachments']);
$message_attachment = '['.basename($attachment->sticker).']
';
} else if ($message['attachment_type'] === 'audio_message') {
$message_attachment = Registry::load('strings')->audio_message;
} else if (!empty($message['attachment_type']) && $message['attachment_type'] !== 'url_meta') {
$attachments = json_decode($message['attachments']);
$message_attachment = '';
foreach ($attachments as $attachment) {
if (!isset($attachment->name)) {
$attachment = new stdClass();
$attachment->name = '[Attachment]';
}
$message_attachment .= '['.$attachment->name.'] ';
}
$message_attachment .= '
';
}
?>
|
|
|
gif ?>
|
sticker ?>
|
audio_message ?>
|
|
|