# Alerts in Telegram

- Section: Alerts (no code) (TTF API reference)
- Source: https://ttf.bot/developers/docs/#telegram-alerts
- The whole reference as one text: https://ttf.bot/developers/docs/llms-full.txt

Get your alerts as messages from the TTF bot: in your own chat with the bot, in a group, or in a channel you run. No server and no code.

## Before you start

- A TTF developer account (free): [sign in](https://ttf.bot/developers/app/) with Telegram or your email.
- Your Telegram linked to that account. It proves the chat is yours. Signed in with Telegram? Then it is linked already. Otherwise: tab **Security**, panel **Telegram sign-in**, press **Link Telegram** (the TTF bot sends you a code to type in). The connect steps also offer the button when it is needed.
- For a group or a channel: you are its creator or an administrator.
- A free destination on your plan (Free has one).

## Connect it

1. **Open Destinations**

   In the dashboard, tab **Destinations**, under **Where should alerts go?** pick **Telegram**. For your safety, we may ask you to sign in again first: connecting a chat needs a sign-in from the last 10 minutes.

2. **Pick where**

   **My Telegram** (a private chat with the TTF bot), **A group** or **A channel**.

3. **Confirm it in Telegram**

   The page gives you a link with a one-time code that works for 10 minutes:

   - **My Telegram**: press **Open Telegram**. It opens your chat with [@TTFBotBot](https://t.me/ttfbotbot) (it sends `/start` with the code for you). Tap **Allow**.
   - **A group**, three ways: **Add the bot to a group** (Telegram asks which group, adds the bot and sends the code for you); or, when the bot is already there, copy the command the page shows and send it in the group, as yourself (with "Remain anonymous" off). It looks like this, with your own code at the end: `/hooklink@TTFBotBot YOUR-ONE-TIME-CODE`. Or **Pick from my groups** (a button in your chat with the bot lists the groups it is in).
   - **A channel**: press **Open Telegram**, tap **Choose a channel**, pick yours, and accept adding the bot as an admin that may post.

   The page shows what was found (the chat's name, that you are an admin, that the bot can post). Press **Continue**.

4. **Name it and pick what it takes**

   Back on the page: give it a name (only you see it), tick the alert types it takes (price, trending, wallet, signals; your plan decides which you can tick), and choose the options (below). Press **Create destination**.

5. **Test it**

   Press **Send a test message**. Then **Make an alert for it**, or open **Design the message** to change how it looks.

Here is a trending alert in a Telegram group:

Telegram group, trending alert with filters

```
🔥 DEMO just entered trending - Ethereum
Rank 3 - 12 scans
Liquidity $62K - MC $480K - 1 h +38.5%
Tax 0% / 5% - locked 100% - 900 holders
Unknown: source code
Passed your filters.
Open - Scan
via TTF
```

## Options

- **Send quietly**: the message arrives without a notification sound.
- **Scan button**: a button under each message that opens the token in the TTF bot.
- **Token page button**: a button that opens the token's page on ttf.bot.

Change them any time: on the destination's card press **Settings**.

## It keeps checking

Before it sends, and every few minutes, TTF checks that you are still an administrator of the chat and that the bot may still post there. If not, the destination stops and shows **Needs attention** with the reason and a button to fix it:

| The card says | What to do |
| --- | --- |
| You are no longer an admin of the chat. | Become an admin again (or ask the owner to connect it), then press **Re-check**. |
| The bot was removed from the chat. | Press **Add the bot back**, add it in Telegram, then **Re-check**. |
| The bot is blocked in that chat. | Unblock the TTF bot in Telegram, then **Re-check**. |
| The bot may not post there. | Give the bot the right to send messages (in a channel: to post), then **Re-check**. |
| The group was upgraded: connect it again. | Telegram turned the group into a new one: press **Connect again**. |
| The chat cannot be found any more. | The chat was deleted, or the bot cannot see it: connect another chat. |

## The one-time code

- It works for 10 minutes and only once. A used or expired code does nothing: start again in the dashboard.
- Only you can use it: the bot checks that the Telegram account that sends it is the one linked to your TTF account, and that it is an admin of that chat. Anyone else who sees it in the group gets nothing from it.
- The bot deletes the command message in a group when it has the right to; otherwise delete it yourself.
- In a group with topics, you may send the command in any topic. Alerts are posted in the group's General topic.

## Safety

- **TTF never asks for a Telegram bot token.** You do not make a bot in BotFather and you do not give us a chat id or a password: the alerts are posted by the TTF bot, [@TTFBotBot](https://t.me/ttfbotbot). Anyone who asks you for a bot token "for TTF alerts" is not us.
- Only an admin can connect a chat, and only through the TTF bot: nobody can type in a chat id.
- When a destination is connected, the TTF bot sends you a private message about it with a **Disconnect** button (it works for 24 hours). Did not do it yourself? Press it: it signs your account out everywhere and removes the destination.
- Alerts never ping anyone: no `@all`, no `@name`.

## Stop it

On the destination's card: **Pause** stops alerts until you press **Resume** (nothing is saved up meanwhile). **Disconnect** removes the destination: it asks whether to delete its alerts or move them to another destination.

> Every answer the bot can give while you connect, and what to do about it, is in the [Telegram and Discord alerts guide](https://ttf.bot/guides/telegram-and-discord-alerts/).
