{% for gm in messages %} {% if let Some(text) = gm.msg.system_text() %}
โคท {{ text }} {{ gm.msg.display_timestamp() }}
{% else %}
{% if gm.grouped %} {{ gm.msg.display_time() }} {% else if gm.msg.author_avatar.is_some() %} {{ gm.msg.author_display_name() }} {% else %}
{{ gm.msg.author_display_name().chars().next().unwrap_or('?') }}
{% endif %}
{% if gm.msg.ref_message_id.is_some() %}
โ†ฉ {% if !gm.msg.ref_is_system() %}{{ gm.msg.ref_author_display_name().unwrap_or("Unknown") }}{% endif %} {% if let Some(ref_content) = gm.msg.ref_display_content() %} {{ ref_content }} {% else %} Original message was deleted {% endif %}
{% endif %} {% if !gm.grouped %}
{{ gm.msg.author_display_name() }} {% if gm.msg.author_bot %}BOT{% endif %} {{ gm.msg.display_timestamp() }} {% if gm.msg.edited_timestamp.is_some() %}(edited){% endif %} {% if gm.msg.pinned %}๐Ÿ“Œ{% endif %}
{% else if gm.msg.edited_timestamp.is_some() || gm.msg.pinned %}
{% if gm.msg.edited_timestamp.is_some() %}(edited){% endif %} {% if gm.msg.pinned %}๐Ÿ“Œ{% endif %}
{% endif %} {% if !gm.msg.content.is_empty() %}
{{ gm.msg.content }}
{% endif %} {% for sticker in stickers.for_message(gm.msg.id) %} {% if sticker.available %} {{ sticker.name }} {% else %} [sticker: {{ sticker.name }}] {% endif %} {% endfor %}
{% endif %} {% endfor %}