# Delivery log: did my alert arrive?

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

Every message to a destination is written in its delivery log for 30 days: when, which alert, and what happened. Here is what each word means and what to do.

## Where to look

- Telegram and Discord: tab **Destinations**, open **Delivery log** on the destination's card.
- Your server (webhook): the same tab, the endpoint's log shows the status, the HTTP answer of your server and how long it took.
- From code: [Delivery log](https://ttf.bot/developers/docs/md/api-deliveries.md) of the API.

## Status of a delivery

| Status | What it means |
| --- | --- |
| `pending` | Sending now. |
| `delivered` | It arrived. For your server: it answered with a 2xx status. |
| `retrying` | Not delivered yet. TTF tries again by itself (your server: after 1 min, 5 min, 30 min, 2 h and 12 h). |
| `dead` | Given up. The reason next to it says why: for example your server kept failing, the chat no longer accepts the bot, the alert was too old, or a plan limit. |
| `delayed_expired` | Could not be tried in time because our sending side was busy. Not your fault and not counted. |
| `lost` | Lost on our side. Not counted against your destination. |

## Telegram and Discord: the reasons

A chat delivery that did not go out normally says why, in these words:

| Reason | What it means |
| --- | --- |
| `ok` | Sent. |
| `tg_blocked` | The bot is blocked in that chat. Unblock it in Telegram, then press Re-check. |
| `tg_kicked` | The bot was removed from the chat. Add it back, then press Re-check. |
| `tg_chat_gone` | Telegram cannot find that chat any more. Check that it still exists, then press Re-check. |
| `dc_50013` | Discord says the bot may not post there: fix the channel permissions and press Re-check. |
| `dc_50001` | Discord says the bot cannot see that channel: fix its permissions and press Re-check. |
| `dc_10003` | Discord cannot find that channel any more. Check it, then press Re-check. |
| `dc_50007` | Discord did not let the bot message you: allow DMs from server members, then press Re-check. |
| `stale` | The message waited more than 15 minutes and was dropped, because old alerts are not useful. |
| `access_lost` | TTF could not confirm that this chat is still yours. Press Re-check. |
| `rate_capped` | This destination got more than 600 alerts in an hour, so this one was not sent. |
| `render_failed` | The message could not be built from your design. Check it in Edit message. |
| `render_rejected` | The chat app did not accept the message design. Check it in Edit message. |
| `too_long` | The message was too long for the chat app. Shorten it in Edit message. |
| `provider_unavailable` | The chat app was not answering. TTF tried again while the alert was still useful. |
| `tg_forbidden` | Telegram says the bot cannot post: fix its permissions and press Re-check. |
| `dc_missing_access` | Discord says the bot cannot see that channel: fix its permissions and press Re-check. |
| `dc_missing_perms` | Discord says the bot may not post there: fix the channel permissions and press Re-check. |
| `dc_cannot_dm` | Discord did not let the bot message you: share a server with it and allow DMs, then press Re-check. |
| `verify_unavailable` | TTF could not check the chat just then (it never sends without checking). |
| `chat_off` | Chat delivery was switched off for the moment. |
| `paced` | Held for a moment to stay within the chat app's speed limit. |
| `timeout` | The chat app took too long to answer. |
| `tg_floodwait` | Telegram asked TTF to slow down. The message goes out shortly. |
| `tx_wait` | Waiting a moment for the transaction details. |
| `tx_merge` | Waiting for the message about the same swap. |
| `tx_failed` | The transaction failed on-chain, so nothing moved and no message was sent. |
| `merged` | This transfer was part of a swap that got one message. |
| `tg_<status>` | Telegram refused the message with that status. Check the chat, then press Re-check. |
| `dc_<status>` | Discord refused the message with that status. Check the channel, then press Re-check. |

## Status of a destination

| The dashboard says | What it means |
| --- | --- |
| **Working** | Messages arrive. |
| **Having trouble** | The latest messages did not arrive. TTF keeps trying: look at the delivery log. |
| **Paused** | You paused it. Nothing is sent or saved up until you press **Resume**. |
| **Turned off after failures** | Messages kept failing for over an hour. Fix the cause, send a test, then **Resume**. |
| **Over your plan limit** | You have more destinations than your plan allows: delete one or upgrade. |
| **Needs attention** | Telegram or Discord: TTF could no longer confirm the chat is yours or that the bot may post. The card says why and offers the fix (**Re-check**, **Add the bot back** or **Connect again**). |

## A test that does not arrive

1. Wait a minute: a test is queued like a real alert.
2. Open the delivery log: the reason is there.
3. Telegram or Discord: press **Re-check** on the card; it says what is wrong with the chat.
4. Your server: it must answer with a 2xx status within 10 seconds, on a public https address ([Retries and limits](https://ttf.bot/developers/docs/md/webhook-retries.md)).
