{% if not no_avatar %}
{% if their_avatar is not none %} {% else %} {% endif %}
{% endif %}

{{ headline }}

{% if status is not none %}

{{ status }}

{% endif %}
{% if previous %} {% endif %} {% if next %} {% endif %}
{% set last = {'last': 946688461.001} %} {% for msg in msgs -%} {% if determine_day(last.last, msg.timestamp) is not none %}
{{ determine_day(last.last, msg.timestamp) }}
{% if last.update({'last': msg.timestamp}) %}{% endif %} {% endif %} {% if msg.from_me == true %}
{% if msg.reply is not none %}

Replying to

{% if msg.quoted_data is not none %} "{{msg.quoted_data}}" {% else %} this message {% endif %}

{% endif %}

{% if msg.meta == true or msg.media == false and msg.data is none %}

{% if msg.safe %} {{ msg.data | safe or 'Not supported WhatsApp internal message' }} {% else %} {{ msg.data or 'Not supported WhatsApp internal message' }} {% endif %}
{% if msg.caption is not none %}

{{ msg.caption | urlize(none, true, '_blank') }}

{% endif %} {% else %} {% if msg.media == false %} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }} {% else %} {% if "image/" in msg.mime %} {% elif "audio/" in msg.mime %} {% elif "video/" in msg.mime %} {% elif "/" in msg.mime %} The file cannot be displayed here, however it should be located at here {% else %} {% filter escape %}{{ msg.data }}{% endfilter %} {% endif %} {% if msg.caption is not none %} {{ msg.caption | urlize(none, true, '_blank') }} {% endif %} {% endif %} {% endif %}

{{ msg.time }}

{% else %}
{% if msg.reply is not none %}

Replying to

{% if msg.quoted_data is not none %} {{msg.quoted_data}} {% else %} this message {% endif %}

{% endif %}

{% if msg.meta == true or msg.media == false and msg.data is none %}

{% if msg.safe %} {{ msg.data | safe or 'Not supported WhatsApp internal message' }} {% else %} {{ msg.data or 'Not supported WhatsApp internal message' }} {% endif %}
{% if msg.caption is not none %}

{{ msg.caption | urlize(none, true, '_blank') }}

{% endif %} {% else %} {% if msg.media == false %} {{ msg.data | sanitize_except() | urlize(none, true, '_blank') }} {% else %} {% if "image/" in msg.mime %} {% elif "audio/" in msg.mime %} {% elif "video/" in msg.mime %} {% elif "/" in msg.mime %} The file cannot be displayed here, however it should be located at here {% else %} {% filter escape %}{{ msg.data }}{% endfilter %} {% endif %} {% if msg.caption is not none %} {{ msg.caption | urlize(none, true, '_blank') }} {% endif %} {% endif %} {% endif %}

{% if msg.sender is not none %} {{ msg.sender }} {% endif %} {{ msg.time }}
{% endif %} {% endfor %}