Kustos
Manage billing
Wiki / Setup — connections & keys

Telegram — a bot to notify you

What it is for. Three things, all through one bot. Alerts about what Kustos did, sent to you rather than left in a log you have to go and read. Approve / Decline buttons on every request that is waiting in Overseerr or Jellyseerr, so you can answer one from your phone. And a /request command anyone can send the bot to ask for a title. Approving in Telegram is a real action, not an acknowledgement: a Seer request is approved in Seer, and a /request is added to Sonarr/Radarr straight away.

Cost. Free.

Optional. Kustos runs perfectly without notifications. Discord is the other option and needs only a webhook URL.

You need two values, and they come from two different bots. This trips people up, so do them in order.

The bot token

  1. In Telegram, search for @BotFather and start a chat with it. It is Telegram's own bot for making bots, and it has a blue verified tick — there are impersonators, so check for it.
  2. Send /newbot.
  3. It asks for a display name. Anything you like; this is what appears at the top of the chat. "Kustos" is fine.
  4. It then asks for a username, which must be unique across all of Telegram and must end in bot. If your first choice is taken it simply asks again.
  5. BotFather replies with a line beginning "Use this token to access the HTTP API", followed by the token. Copy it.

Treat the token as a password. Anyone holding it can post as your bot. BotFather can revoke and reissue it with /revoke if it ever leaks.

The admin chat id

The token lets Kustos send messages. The chat id says where. Telegram will not let a bot message you until you have spoken to it first, so:

  1. Open a chat with the bot you just made and send it /start. Nothing will appear to happen. That is expected — it is opening the channel, not getting a reply.
  2. Now search for @userinfobot and send it /start as well. It replies with your account details, including a numeric Id. Copy that number.
  3. In Kustos, go to Settings → Automation → Notifications and find the card called Telegram requests & approvals, at the bottom. Paste the token into the box that reads "Bot token (123456:ABC-DEF…)", paste the number into the box that reads "Admin chat id (a long number, e.g. 1234567890)", and press Save.
  4. Check the card's title line. It should now say · connected as @your_bot. If it still says · not set up, the token did not save; Kustos checks it with Telegram before keeping it, and shows the reason under the buttons.
  5. Send /start to your bot again. This time it answers (allow it up to 15 seconds after saving to wake up), which proves the whole loop works.
kustos · your server
The two Telegram cards on Settings → Automation → Notifications
The two Telegram cards on Settings → Automation → Notifications. The alerts channel at the top can leave both boxes blank and send through the request bot below it, which shows the bot it is connected as and the admin chat id.

If no message ever arrives, it is almost always step 6 that was skipped. A bot cannot open a conversation with you; you have to open it with the bot.

The token is never shown again once saved, and that is deliberate. The box then reads "•••••• saved — type a new token to replace". Leave it empty to keep the saved token. To change the admin chat id, edit only that box and press Save; the token is not touched. Turn off clears the token and stops the bot.

Notifications through the same bot

The bot you just set up can also carry Kustos's alerts. You do not need a second token.

  1. On the same page, find the Telegram card, above Telegram requests & approvals.
  2. Leave both boxes empty. They read "Bot token — blank uses the request bot below" and "Chat ID — blank uses the request bot admin chat", which is exactly what happens: the channel sends through the request bot, to its admin chat.
  3. Switch on Enable.
  4. Tap the alerts you want. They are grouped by subject; see Settings → Notifications.
  5. Press Save.

To send alerts somewhere else, fill in that box only: a different bot's token, or a different chat's id. Waiting requests are never sent twice to the same chat: the message with Approve / Decline buttons stands in for the plain alert there.