> ## Documentation Index
> Fetch the complete documentation index at: https://docs.migma.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Migma for Telegram

> Message the Migma bot on Telegram, connect once, then create and edit branded emails in a chat or a group without leaving Telegram.

Start a chat with the **Migma bot on Telegram**, connect your account once, then message it to create and edit branded emails. Direct message the bot, or mention it in a group. It replies with preview images and, when you ask, HTML files.

```text theme={null}
Create 3 emails for Stripe and show me the images
```

<Note>
  Migma for Telegram is in beta and rolling out. The bot handle is set at launch; use the link on the Migma connect page.
</Note>

## Set up

<Steps>
  <Step title="Start a chat with the bot">
    Open the Migma bot at [@MigmaBot](https://t.me/MigmaBot) and press **Start**. You can also add it to a group and mention it there.
  </Step>

  <Step title="Connect your account">
    The first time you message the bot, it shows a **Connect Migma** button. Tap it, then sign in on the Migma connect page with the **Telegram Login Widget**. This links your Telegram identity to your Migma account, so the bot acts as you. You only do this once.
  </Step>

  <Step title="Message the bot">
    Tell it what you want in plain language. In a group, mention the bot so it knows the message is for it.
  </Step>
</Steps>

## What you can do

Talk to it in plain language:

| Ask                                              | Result                                     |
| ------------------------------------------------ | ------------------------------------------ |
| `List my brands`                                 | The brands on your account                 |
| `Import stripe.com and make 2 onboarding emails` | Imports the brand, then generates          |
| `Create 3 emails for Stripe and show me images`  | Three on-brand emails with preview images  |
| `Make it shorter` (reply to the email)           | Edits the email already in that chat       |
| `Make email 2 more formal`                       | Edits one email in a set                   |
| `Show me welcome email inspiration`              | Real brand examples for ideas (paid plans) |

You can also **attach an image** and say `Make an email like this for Stripe` to generate a branded email from it.

Every result includes an **Open in Migma** button to edit, download, or send in the app.

<Info>
  Telegram is the chat surface. Migma does the work: brand access, generation, previews, HTML, and inspiration. Sending and exporting stay in Migma.
</Info>

## How brands work

When you name a brand, Migma matches it against your existing brands. If none match, it asks for a website and imports it first. To use a different brand mid-chat, just name it or paste a URL.

## Campaign notifications

Tell Migma to notify you about campaigns in the current chat:

```text theme={null}
Notify me about campaigns in this chat
```

Migma posts when a campaign starts sending, is sent, or fails. About 30 minutes after a successful send, it follows with a stats digest covering sent, delivered, opens, clicks, bounces, and unsubscribes.

## Plan the next campaign

Ask what to send next and Migma answers from your brand's Marketing Calendar:

```text theme={null}
What should we send next?
```

Migma lists campaigns already prepared for you, each with its reason and proposed send time, plus upcoming calendar moments that are not prepared yet. When one looks right, confirm it in the chat and Migma schedules it.

## What it does not do

The bot creates and edits **drafts only**. It cannot send emails directly or export. The one scheduling action it can take is a prepared Marketing Calendar proposal that you explicitly confirm in chat; everything else stays a Migma app action, where you review the email and approve the send yourself.

<Warning>
  Never paste a Migma API key into Telegram. Connecting is done entirely through the **Connect Migma** button and the Telegram Login Widget.
</Warning>

## Connecting and disconnecting

Linking uses Telegram's **Login Widget**, so Telegram asserts your identity and nothing is pasted. Migma stores the link encrypted and the bot acts as a scoped Migma key that cannot send. One Telegram account links to one Migma account.

To disconnect, message the bot `disconnect`, or revoke the key named for your Telegram account under **Settings → Developers → API Keys** in Migma. After that, the bot asks you to connect again on your next message.

## Building your own Telegram bot

Prefer to host your own bot, or want Migma in Slack, WhatsApp, or Discord too? Use the API directly with agent-auth, or run Migma through OpenClaw.

<CardGroup cols={2}>
  <Card title="Agent Auth" icon="key" href="/agent-auth">
    Per-user scoped access for a custom bot via the auth.md flow.
  </Card>

  <Card title="OpenClaw" icon="lobster" href="/openclaw">
    Run Migma in Slack, WhatsApp, Telegram, and Discord through OpenClaw.
  </Card>

  <Card title="SDK" icon="https://mintcdn.com/migmaai/kT6TJgF40rDP8_qB/images/logos/npm.svg?fit=max&auto=format&n=kT6TJgF40rDP8_qB&q=85&s=1839361b0494d7d3199cdaa3575846ac" href="/sdk" width="24" height="24" data-path="images/logos/npm.svg">
    Generate series, fetch HTML, and read preview URLs from your own code.
  </Card>

  <Card title="API reference" icon="code" href="/api-reference/introduction">
    The v1 endpoints behind everything the bot does.
  </Card>
</CardGroup>
