{% if 'forwarded_from' in message %}
{% endif %}
{% if message['user-account']['username'] %}
{{ message['user-account']['username']['id'] }}
{% else %}
{{ message['user-account']['id'] }}
{% endif %}
{% if message['reply_to'] %}
{% if message['reply_to']['user-account']['username'] %}
{{ message['reply_to']['user-account']['username']['id'] }}
{% else %}
{{ message['reply_to']['user-account']['id'] }}
{% endif %}
{{ message['reply_to']['content'] }}
{% if message['reply_to']['translation'] %}
{{ message['reply_to']['translation'] }}
{% endif %}
{% for tag in message['reply_to']['tags'] %}
{{ tag }}
{% endfor %}
{{ message['reply_to']['full_date'] }}
{#
#}
{% endif %}
{% if message['images'] %}
{% for message_image in message['images'] %}
{% if message_image['ocr'] %}
OCR
{% endif %}
{% endfor %}
{% endif %}
{% if message['files-names'] %}
{% for file_name in message['files-names'] %}
{{ file_name }}
{% endfor %}
{% endif %}
{% if not message['extracted'] %}
{{ message['content'] }}
{% else %}
{{ message['content'][:message['extracted'][0][0]] }}{% for row in message['extracted'] %}{{ message['content'][row[0]:row[1]] }}{% if loop.index + 1 > message['extracted']|length %}{{ message['content'][message['extracted'][-1][1]:] }}{% else %}{{ message['content'][row[1]:message['extracted'][loop.index][0]] }}{% endif %}{% endfor %}
{% endif %}
{% if message['translation'] %}
{{ message['translation'] }}
{% endif %}
{% for reaction in message['reactions'] %}
{{ reaction }} {{ message['reactions'][reaction] }}
{% endfor %}
{% if message['thread'] %}
{% endif %}
{% for tag in message['tags'] %}
{{ tag }}
{% endfor %}
{% set mess_id_escape= message['id'] | replace("/", "_") %}
{% if message['language'] %}{{ message['language'] }}{% endif %}