{% extends "base.html" %} {% import "macros/admin_management_header.html" as mh %} {% block extra_head %} {% include "partials/workspace_ui_head.html" %} {% endblock %} {% block page_title %}Link Telegram{% endblock %} {% block content %}
{{ mh::management_header_simple( title="Link Telegram", subtitle="Connect a Telegram chat to your Blocks account so bots can recognize you.", title_heading="h1", include_actions_column=false ) }}
{% if status == "linked" %}
Telegram linked. Chat {{ chat_id }} is connected {% if label %} ({{ label }}){% endif %}.

You can message the bot again for product-specific commands (for example license keys if Zephyre Licenses is enabled).

{% elif status == "error" %} {% if login_redirect_url %} {# Break out of brochure SPA iframe so Google OAuth is not framed (403). #}

Sign in to continue

{% endif %}

Message the bot again to get a fresh enrollment link, then open it while signed in as this account.

{% else %}

How to link

  1. Open the Telegram bot you want to use and send any message (e.g. hi or /start).
  2. Tap the enrollment link the bot replies with — you must be signed in here.
  3. After linking, that chat is associated with this Blocks account.
{% endif %}
{% endblock %}