Skills

Hive.telegram Notifications Setup

Set up a Telegram notification channel (Sentinel) for a colony by driving the browser, ...

Install

npx skills add aden-hive/hive --skill hive.telegram-notifications-setup -g -a claude-code -y
Repository
aden-hive/hive11.1k
Category
AI and agents
Updated
9d ago
License
Apache-2.0
Context cost
Mediumabout 2,060 tokens
Runs scripts
No, instructions only

What it does

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 hive.browser-automation.

Telegram Notifications Setup (Sentinel)

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.

Telegram Web specifics (verified)

  • Telegram Web defaults to the K version at https://web.telegram.org/k/. The selectors below are verified there; fall back to screenshot + coordinates if a selector doesn't match (e.g. the older /a/ version).
  • Message composer: #editable-message-text, click it, type your text, send with the Enter key. Used for /newbot, /start, etc.
  • Global search: the search box is top-left (around [0.13, 0.04]). Click it, type a name, then click the result row to open that chat.
  • Read a bot's reply as text (don't OCR a screenshot): run hive-browser page 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.

Before you start, check what already exists

Read the whole SKILL.md on GitHub

More in AI and agents