# Design the message

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

Every Telegram and Discord destination has its own look for each kind of alert: a ready-made look, or your own text with the values you pick.

## Open the designer

Dashboard, tab **Destinations**, on a Telegram or Discord destination press **Edit message** (right after you connect one: **Design the message**). Each kind of alert has its own tab: price cross, price move, trending entry, wallet activity, signal and the test message.

## Ready-made looks

**Standard** (the default, with links), **Compact** (one line) and **Minimal** (one line, no emoji). The preview on the right shows the message with an example event (**Normal price**, **Very small price**, **Rising**, **Falling**, **With filters**, **Received**, **Sent** ...), as Telegram or as Discord. The standard looks:

Price cross, standard

```
🔔 Price alert
DEMO - Ethereum
Crossed above $2.00: now $2.04
Open - Scan
via TTF
```

Price cross, compact

```
🔔 DEMO crossed above $2.00 → $2.04 - eth
via TTF
```

Price cross, minimal

```
DEMO crossed above $2.00, now $2.04 (eth)
via TTF
```

Price move, falling

```
📉 Price move
DEMO - Ethereum
-4.5% in 1h: $2.14 → $2.04
Open
via TTF
```

Wallet activity, sent

```
👛 0x0000…beef - Ethereum
Sent 1.25 DEMO (≈ $2.5K)
Transaction - Wallet - Scan
via TTF
```

Signal

```
🟢 NEW Daily ATH - STRONG

📌 Demo Token (DEMO)
🔸 Ethereum - age 9d - uniswap

🚀 Broke ATH by +2.5% (prev ATH $18.86M - 2d ago)
💰 MC $19.33M - Liq $1.24M - Price $0.01933
📈 24h +31.4% - Vol $3.87M - B 4,210 / S 2,960 (1.42)

0x000000000000000000000000000000000000dead

Plan: if it holds 24h → enter - sell 50% at 2x - sell 50% every 3x after
Token page - Scan
DYOR / NFA
via TTF
```

Test message

```
✅ TTF test message. Hello from TTF
via TTF
```

## Your own text

Press **Customise** and edit the text. The buttons above the box help: **Insert value** (a list of every value with an example), **Insert logic**, **Bold**, **Italic**, **Code** and **Link to TTF**. Then **Save**, or **Save and send a test**. **History** brings back one of your last 20 saved versions, **Reset** goes back to the standard look, and **Copy to other kinds** uses the same text for other alert kinds.

A small example for a price alert:

```
🔔 <b>{token_symbol}</b> {if is_up}up{else}down{/if} to {price|price}
{if rule_name}Alert: {rule_name}{/if}
<a href="{link_token}">Open on TTF</a>
```

### The rules of the text

- `{name}` prints a value. `{name|format}` prints it in another format (table below).
- `{if name}...{/if}` prints the middle only when the value exists or is true; add `{else}...` for the other case. Every optional value of the standard looks sits inside an `{if}`, so a missing value never leaves an empty line.
- Formatting: `<b>` bold, `<i>` italic, `<u>` underline, `<s>` strike, `<code>` and `<pre>`. Discord gets the same text in its own formatting.
- Links: `<a href="{link_token}">text</a>`. A link may only go to TTF and the block explorers TTF supports, so use the ready-made link values.
- No mentions: `@everyone`, `@here`, `@name` and Discord's `<@...>` are refused, so an alert can never ping a whole group.
- Length: the text up to 1,500 characters and 60 values. The longest message it can make must fit Telegram (3,900 characters) and Discord (1,900; 3,900 as a card): the designer warns you before you save.
- TTF adds a small *via TTF* line at the end of every message.
- Names of tokens and wallet labels are written by other people: TTF cleans them (no links, no pings, no hidden characters) before they are printed.

If a saved design cannot be built for one event (for example a value is far too long), that message goes out in the standard look instead, so you never miss an alert.

## Every value

"As shown" values are already formatted by TTF and take no format. The examples come from the designer's example events.

| Value | What | Alerts | Type | Example |
| --- | --- | --- | --- | --- |
| `{rule_name}` | Alert name | every alert | text, cleaned | `Demo alert` |
| `{kind_label}` | Alert type | every alert and the test | as shown | `Price cross` |
| `{chain}` | Chain key | every alert | text | `eth` |
| `{chain_name}` | Chain | every alert | as shown | `Ethereum` |
| `{time}` | Time | every alert and the test | as shown | `2026-11-18 11:06 UTC` |
| `{time_hm}` | Time (short) | every alert and the test | as shown | `11:06 UTC` |
| `{token}` | Token address | every alert | text | `0x000000000000000000000000000000000000dead` |
| `{token_short}` | Token (short) | every alert | as shown | `0x0000…dead` |
| `{token_symbol}` | Token symbol | price cross, price move | text, cleaned | `DEMO` |
| `{symbol}` | Symbol | trending, wallet, signal | text, cleaned | `DEMO` |
| `{name}` | Token name | trending, signal | text, cleaned | `Demo Token` |
| `{price}` | Price | price cross, price move, signal | number | `$2.04` |
| `{threshold}` | Threshold | price cross | number | `$2.00` |
| `{side}` | Direction | price cross | text | `above` |
| `{change_pct}` | Change % | price cross, price move | number | `2` |
| `{window}` | Window | price move | text | `1h` |
| `{threshold_pct}` | Target % | price move | number | `4` |
| `{base_price}` | Base price | price move | number | `$1.95` |
| `{base_time}` | Base time | price move | as shown | `2026-11-18 10:06 UTC` |
| `{rank}` | Rank | trending | number | `3` |
| `{scans}` | Scans | trending | number | `12` |
| `{min_scans}` | Min scans | trending | number | `5` |
| `{first_seen}` | First seen | trending | as shown | `2026-11-18 11:04 UTC` |
| `{liquidity}` | Liquidity | trending, signal | number | `$62K` |
| `{market_cap}` | Market cap | trending, signal | number | `$480K` |
| `{change_1h}` | Change 1 h % | trending | number | `38.5` |
| `{buy_tax}` | Buy tax % | trending | number | `0` |
| `{sell_tax}` | Sell tax % | trending | number | `5` |
| `{locked_pct}` | Locked or burned % | trending | number | `100` |
| `{holders}` | Holders | trending | number | `900` |
| `{top10_pct}` | Top 10 share % | trending | number | `22.5` |
| `{market_line}` | Market line | trending, signal | as shown | `Liquidity $62K - MC $480K - 1 h +38.5%` |
| `{checks_line}` | Checks line | trending | as shown | `Tax 0% / 5% - locked 100% - 900 holders` |
| `{unknown_values}` | Unknown values | trending | as shown | `source code` |
| `{filters_note}` | Filters note | trending | as shown | `Passed your filters.` |
| `{wallet}` | Wallet | wallet | text | `0x000000000000000000000000000000000000beef` |
| `{wallet_short}` | Wallet (short) | wallet | as shown | `0x0000…beef` |
| `{wallet_label}` | Wallet label | wallet | text, cleaned | - |
| `{amount}` | Amount | wallet | as shown | `1.25` |
| `{swap_sent}` | Swap: paid | wallet | as shown | - |
| `{swap_received}` | Swap: received | wallet | as shown | - |
| `{network_fee}` | Network fee | wallet | as shown | - |
| `{value_usd}` | Value | wallet | number | `$2.5K` |
| `{direction}` | Direction | wallet | text | `in` |
| `{from}` | Sender | wallet | as shown | `0x0000…cafe` |
| `{to}` | Receiver | wallet | as shown | `0x0000…beef` |
| `{tx}` | Transaction | wallet | text | `0xabababababababababababababababababababababababababababababababab` |
| `{signal_kind}` | Signal | signal | text | `breakout` |
| `{signal_text}` | Signal text | signal | text, cleaned | `Demo signal: this is a sample` |
| `{score}` | Score | signal | number | `87` |
| `{multiple}` | Multiple | signal | number | `1x` |
| `{plan_text}` | Plan | signal | text, cleaned | `if it holds 24h → enter - sell 50% at 2x - sell 50% every 3x after` |
| `{plan_short}` | Plan (short) | signal | text, cleaned | `if it holds 24h → enter - sell 50% at 2x - sell 50% every 3x after` |
| `{called_at}` | Called at | signal | as shown | `2026-11-18 11:06 UTC` |
| `{tier_name}` | Signal tier | signal | as shown | `Daily ATH` |
| `{grade}` | Signal grade | signal | as shown | `STRONG` |
| `{dex}` | DEX | signal | text, cleaned | `uniswap` |
| `{age}` | Token age | signal | as shown | `9d` |
| `{breakout_pct}` | Above the old ATH % | signal | number | `2.5` |
| `{prev_ath}` | Previous ATH (market cap) | signal | number | `$18.86M` |
| `{prev_ath_age}` | Previous ATH age | signal | as shown | `2d` |
| `{volume_24h}` | Volume 24 h | signal | number | `$3.87M` |
| `{change_24h}` | Change 24 h % | signal | number | `31.4` |
| `{buys_24h}` | Buys 24 h | signal | number | `4,210` |
| `{sells_24h}` | Sells 24 h | signal | number | `2,960` |
| `{buy_sell_ratio}` | Buys / sells | signal | number | `1.42` |
| `{entry_mc}` | Market cap at the call | signal | number | - |
| `{called_ago}` | Called (ago) | signal | as shown | `0m` |
| `{move_line}` | Move line | signal | as shown | `Broke ATH by +2.5% (prev ATH $18.86M - 2d ago)` |
| `{activity_line}` | Activity line | signal | as shown | `24h +31.4% - Vol $3.87M - B 4,210 / S 2,960 (1.42)` |
| `{ping_text}` | Test text | test | text, cleaned | `Hello from TTF` |
| `{endpoint_name}` | Destination name | every alert and the test | text, cleaned | `Demo destination` |
| `{delivery_short}` | Delivery id | every alert and the test | as shown | `DEMO000P` |
| `{link_token}` | Token page | every alert | a link, for `href` | - |
| `{link_scan}` | Scan in TTF Bot | every alert | a link, for `href` | - |
| `{link_tx}` | Transaction | wallet | a link, for `href` | - |
| `{link_wallet}` | Wallet page | wallet | a link, for `href` | - |
| `{is_up}` | Price went up | price cross, price move | yes / no, for `{if}` | - |
| `{is_down}` | Price went down | price cross, price move | yes / no, for `{if}` | - |
| `{is_out}` | Sent from the wallet | wallet | yes / no, for `{if}` | - |
| `{is_in}` | Received by the wallet | wallet | yes / no, for `{if}` | - |
| `{has_label}` | Wallet has a label | wallet | yes / no, for `{if}` | - |
| `{is_swap}` | The transaction is a swap | wallet | yes / no, for `{if}` | - |
| `{has_unknown}` | Some values unknown | trending | yes / no, for `{if}` | - |
| `{is_breakout}` | The signal is an ATH breakout | signal | yes / no, for `{if}` | - |
| `{is_call}` | The signal is a call milestone | signal | yes / no, for `{if}` | - |
| `{has_trades}` | Buys or sells are known | signal | yes / no, for `{if}` | - |

## Formats

| Format | What it does | Works on | Example |
| --- | --- | --- | --- |
| `\|usd` | Dollars, short | numbers | `2550000` → `$2.55M` |
| `\|price` | A price, with small prices written out | numbers | `1.23e-05` → `$0.00001230` |
| `\|num` | A number, short | numbers | `2550000` → `2.55M` |
| `\|int` | A whole number with separators | numbers | `2550000` → `2,550,000` |
| `\|pct` | Percent, 2 decimals | numbers | `4.5` → `4.50%` |
| `\|pct1` | Percent, 1 decimal | numbers | `4.5` → `4.5%` |
| `\|pct0` | Percent, no decimals | numbers | `4.5` → `5%` |
| `\|signed` | Percent with + or - | numbers | `4.5` → `+4.5%` |
| `\|x` | A multiple | numbers | `3` → `3x` |
| `\|raw` | The value as it is | numbers, yes / no values | `4.5` → `4.5` |
| `\|upper` | Text in capitals | text | `Demo` → `DEMO` |
| `\|lower` | Text in small letters | text | `Demo` → `demo` |
| `\|short` | A long address, shortened | text | `0x000000000000000000000000000000000000dead` → `0x00…dead` |
| `\|yesno` | A true / false value as Yes or No | yes / no values | `True` → `Yes` |
| `\|tick` | A true / false value as a sign | yes / no values | `False` → `✅` |

## Buttons and other options

On the destination's card, **Settings**: **Send quietly** (no notification sound), the **Scan button** (opens the token in the TTF bot) and the **Token page button**; for Discord also **Use an embed (card look)** and its colour. Buttons only link to TTF.
