{ if (e.key === 'Enter' && name.trim() && (bot || token.trim())) handleSubmit(); }} >

{bot ? $t('messaging.editBot') : $t('messaging.addBot')}

{#if !bot}
{:else} {/if}
{#if !bot} {/if}
{#if verifyResult}

{#if verifyResult.ok} ✓ {verifyResult.info?.username ? `@${verifyResult.info.username}` : `ID: ${verifyResult.info?.id}`} {:else} ✗ {verifyResult.error} {/if}

{/if}

{$t('messaging.allowedSendersHint')}

{#if showWsMenu && workspaceButtonEl} (showWsMenu = false)} preferAbove={true} maxHeight="15rem" className="w-48" /> {/if}