[{{ m.time }}]

{% if m.type == 'message' %}
{% if m.text %}
{{ m.text|linebreaksbr }}
{% endif %}
{% if m.response_dict.buttons != None %}
{% for b in m.response_dict.buttons %}
{% if b.url %}
{% elif b.payload %}
{% endif %}
{% endfor %}
{% endif %}
{% if m.response_dict.quick_replies != None %}
{% if forloop.last %}
{% for b in m.response_dict.quick_replies %}
{% if b.payload %}
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% if m.response_dict.elements %}
{% for e in m.response_dict.elements %}
{{ e.title }}
{{ e.subtitle | default_if_none:"" }}
{% for b in e.buttons %}
{% if b.url %}
{% elif b.payload %}
{% else %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% elif m.message.attachment.payload.template_type == 'list' %}
{% for e in m.message.attachment.payload.elements %}
{{ e.title }}
{{ e.subtitle | default_if_none:"" }}
{% for b in e.buttons %}
{% if b.url %}
{% elif b.payload %}
{% else %}
{% endif %}
{% endfor %}
{% endfor %}
{% elif m.type == 'postback' %}
{{ m.text }}
{% else %}
{{ m.type }}: {{ m.text }}
{% endif %}