Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Set up a Telegram notification channel (Sentinel) for a colony by driving the browser — create a bot via @BotFather in Telegram Web, store its token, detect the chat to notify, and turn Sentinel on so the colony can ping the user on Telegram and accept replies. Use when the user asks to "set up Telegram notifications", "get pinged on Telegram", "connect Telegram for alerts", "set up Sentinel on Telegram", or clicks the in-app "Set this up with the agent" button on the Telegram step. Requires hiv
.claude/skills/aden-hive-hive-telegram-notifications-setup/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 127% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 69% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 126% | 0% |
Sentinel pings the user on Telegram when a colony stalls and lets them reply to keep it going. It needs one thing: a Telegram bot token (123456:ABC-…), created via @BotFather and stored under credential id telegram. The same token sends alerts and reads the user's replies.
You do the whole thing end to end with the sentinel_setup tool (the same API the desktop connector uses): create the bot, store the token, detect the chat, point Sentinel at it, and send a test — without making the user paste anything.
Activate hive.browser-automation first — this skill assumes you know the lifecycle rules (the bridge attaches to the user's own Chrome; never launch or kill a browser), the screenshot + viewport-fraction coordinate workflow, and hive-browser interact. Telegram Web is a heavy SPA with custom rendering, so prefer the screenshot + coordinate path over selectors when the snapshot is unclear.
https://web.telegram.org/k/. Theselectors below are verified there; fall back to screenshot + coordinates if a selector doesn't match (e.g. the older /a/ version).
#editable-message-text — click it, type your text, sendwith the Enter key. Used for /newbot, /start, etc.
[0.13, 0.04]). Click it,type a name, then click the result row to open that chat.
text ".chat-message:last-child" --json in the terminal — it returns the latest message verbatim — this is how you capture the token without transposing characters.
sentinel_setup({"action": "status"}). If it shows telegram alreadyconfigured, the token's stored — skip to Step 3 (detect the chat) (or straight to Step 4 if the colony config is already set), don't make a new bot.
hive-browser open /hive-browser navigate https://web.telegram.org/k/ --json in the terminal. You cannot log in for them — you don't have their phone or SMS code. If it shows a QR / phone-number login, STOP and ask the user to log into Telegram Web in their Chrome, then continue. Don't fight the login screen or try to switch login methods yourself.
@BotFather is Telegram's official bot for managing bots.
t.me/ URLs. t.me/BotFather(and hive-browser open-ing it) tends to land on the t.me web page or redirect without opening the chat. Instead: click the global search box (top-left), type BotFather, and click the verified result (blue check) to open the chat.
#editable-message-text) and send/newbot. It asks for:
Hive Sentinel), thenbot (e.g. hive_sentinel_<something>_bot).If the name is taken, BotFather says so — pick another until it's accepted.
followed by the token 123456789:AAE…. Read it by running hive-browser page text ".chat-message:last-child" --json in the terminal, not off a screenshot — the token is long and a single transposed character makes store_token fail. Copy the exact digits:rest string.
sentinel_setup({"action": "store_token", "provider": "telegram", "token": "123456789:AAE…"})This validates the token via getMe before storing and reports the bot's @username. If it's rejected, re-read the token from BotFather's message and retry — never invent or pad a token.
> Prefer not to handle the token yourself? Fall back to > credentials(action="collect", …) with credential_id telegram (field > access_token) to pop a secure form. The default flow above is hands-off and is > what the in-app "Set this up with the agent" button expects.
Telegram bots can only message a user/group after that chat has messaged the bot first. So trigger one message, then detect it:
@username (top-left search) and openthe result — same as finding BotFather. (Clicking the t.me/<bot> link in BotFather's reply is less reliable; search is the sure path.)
/start (or any message): a fresh bot chat shows a Start button —click it; otherwise click the composer (#editable-message-text), type /start, and press Enter. Give it ~2–3s, then detect. That delivers the bot's first update.
that group. (You may need to disable BotFather's privacy mode via /setprivacy → Disable so the bot can read group messages.)
sentinel_setup({"action": "detect_chat"})It returns the chat_id and the sender_id. Use the returned sender_id for the allowlist so only that user can drive the colony.
detect_chat is listener-aware: if this bot is already wired to another colony, Sentinel's background listener is long-polling Telegram and consuming updates — so a raw getUpdates would always come back empty. The tool handles that for you (it reads the chat the listener saw), so just call detect_chat. If it says PENDING, the message simply hasn't landed yet — make sure Start/your message actually sent, then retry. Do not start decrypting credentials or polling the Telegram API by hand to debug a PENDING — that fights the listener and gets you nowhere; messaging the bot and retrying is the whole fix.
configure/test target the colony bound to your session (pass colony_id only to set up a different one):
sentinel_setup({"action": "configure", "channel": "telegram",
"target": {"chat_id": "123456789"},
"allowlist": ["123456789"], "enabled": true})
sentinel_setup({"action": "test"})test sends a message to the chat — ask the user to confirm it arrived. If it didn't, the usual causes are: the chat hasn't messaged the bot yet (redo Step 3), the wrong chat_id, or (for groups) privacy mode still on. sentinel_setup({"action": "status"}) shows the stored token + the colony's current config any time.
When test succeeds you're done: tell the user Sentinel is live on Telegram and they can reply to its messages to keep the colony moving. (They can review or change this under Automations → Set up Sentinel.)
hive.browser-automation and obey its lifecycle rules. Never rungoogle-chrome/chromium, --remote-debugging-port, or kill any browser/bridge process — you drive the user's existing Chrome.
sentinel_setup status shows telegramconfigured, the bot already exists — use it; don't spin up another via /newbot.
text ".chat-message:last-child" --json in the terminal, not off a screenshot, so you don't transpose a character; if store_token rejects it, re-read — don't pad or guess.
code. If Telegram Web shows a login screen, ask them to sign in, then continue.
t.me/ links (which oftendon't open the chat).
telegram. The destination is {"chat_id": "…"} (anumber as a string), not a username or link.
detect_chat stays PENDING, the usersimply hasn't messaged the bot yet. Guide them to message it, then retry. Never decrypt the stored token, curl getUpdates, or otherwise debug the API by hand: the Sentinel listener owns the update stream, so manual polling just loses to it — detect_chat already reads what the listener saw.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 12,982 | 7,604 | -41% | 1 | 1 | 0% | 2,195 | 2,530 | +15% | 0 | 0 | — |
case-02 | fail→fail | 10,255 | 9,132 | -11% | 1 | 1 | 0% | 1,773 | 3,070 | +73% | 0 | 0 | — |
case-03 | fail→fail | 10,499 | 4,401 | -58% | 1 | 1 | 0% | 1,797 | 2,500 | +39% | 0 | 0 | — |
case-04 | fail→fail | 9,670 | 7,235 | -25% | 1 | 1 | 0% | 1,626 | 3,482 | +114% | 0 | 0 | — |
case-05 | fail→pass | 17,120 | 16,433 | -4% | 1 | 1 | 0% | 2,798 | 3,489 | +25% | 0 | 0 | — |
case-14 | fail→fail | 7,517 | 10,570 | +41% | 1 | 1 | 0% | 1,024 | 2,639 | +158% | 0 | 0 | — |
case-06 | fail→pass | 8,055 | 4,967 | -38% | 1 | 1 | 0% | 1,350 | 3,059 | +127% | 0 | 0 | — |
case-07 | fail→pass | 16,893 | 3,584 | -79% | 1 | 1 | 0% | 2,537 | 2,888 | +14% | 0 | 0 | — |
case-08 | fail→fail | 12,137 | 4,967 | -59% | 1 | 1 | 0% | 2,138 | 3,112 | +46% | 0 | 0 | — |
case-09 | fail→pass | 11,061 | 4,410 | -60% | 1 | 1 | 0% | 1,802 | 3,048 | +69% | 0 | 0 | — |
case-10 | fail→pass | 7,339 | 3,712 | -49% | 1 | 1 | 0% | 1,300 | 2,943 | +126% | 0 | 0 | — |
case-11 | pass→pass | 9,723 | 6,022 | -38% | 1 | 1 | 0% | 1,682 | 3,177 | +89% | 0 | 0 | — |
case-12 | fail→pass | 9,624 | 3,811 | -60% | 1 | 1 | 0% | 1,737 | 2,976 | +71% | 0 | 0 | — |
case-13 | pass→pass | 8,621 | 3,588 | -58% | 1 | 1 | 0% | 1,266 | 2,866 | +126% | 0 | 0 | — |
case-15 | fail→pass | 12,879 | 4,542 | -65% | 1 | 1 | 0% | 1,924 | 2,914 | +51% | 0 | 0 | — |
case-16 | pass→pass | 8,782 | 3,365 | -62% | 1 | 1 | 0% | 1,394 | 2,780 | +99% | 0 | 0 | — |
case-17 | fail→pass | 9,631 | 2,774 | -71% | 1 | 1 | 0% | 1,563 | 2,675 | +71% | 0 | 0 | — |
case-18 | pass→pass | 6,856 | 2,590 | -62% | 1 | 1 | 0% | 1,081 | 2,649 | +145% | 0 | 0 | — |
case-19 | pass→pass | 13,827 | 10,997 | -20% | 1 | 1 | 0% | 2,605 | 4,402 | +69% | 0 | 0 | — |
case-20 | pass→pass | 8,600 | 7,298 | -15% | 1 | 1 | 0% | 1,626 | 3,606 | +122% | 0 | 0 | — |
case-21 | pass→pass | 18,220 | 14,343 | -21% | 1 | 1 | 0% | 2,862 | 4,486 | +57% | 0 | 0 | — |
case-22 | pass→pass | 9,549 | 8,898 | -7% | 1 | 1 | 0% | 1,694 | 3,511 | +107% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +36 percentage points is the difference between those two pass rates over the 18 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.