{#each messages as { from, content }} {#if from === 'bot'}
{content}
{/if} {#if from === 'user'}
{content}
{/if} {/each}