본문으로 건너뛰기
cccskills
무료GitHub에 공개

hive.telegram-notifications-setup

Set up Telegram alerts for a colony, a group of AI agents, so users can respond when work stalls. The skill creates or reuses a bot, stores its token, connects the destination chat, and tests notifications.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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
설치 방법 보기

이럴 때 유용합니다

  • Receiving Telegram alerts when agent work stalls
  • Replying from Telegram to keep work moving
  • Setting up a notification bot and destination chat
  • Reusing an existing bot for colony notifications

포함된 파일(1)

  • SKILL.md8.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

  1. Run sentinel_setup({"action": "status"}). If it shows telegram already configured, 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.
  2. Confirm the user is signed into Telegram: run 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.

Step 1 — Create the bot with @BotFather

@BotFather is Telegram's official bot for managing bots.

  1. Use in-app search to reach BotFather — not 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.
  2. In the BotFather chat, click the composer (#editable-message-text) and send /newbot. It asks for:
    • a display name (e.g. Hive Sentinel), then
    • a username that must end in bot (e.g. hive_sentinel_<something>_bot). If the name is taken, BotFather says so — pick another until it's accepted.
  3. On success BotFather replies with "Use this token to access the HTTP API:" 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.

Step 2 — Store the token

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.

Step 3 — Detect the chat to notify

Telegram bots can only message a user/group after that chat has messaged the bot first. So trigger one message, then detect it:

  1. Open the new bot's chat: search its @username (top-left search) and open the result — same as finding BotFather. (Clicking the t.me/<bot> link in BotFather's reply is less reliable; search is the sure path.)
  2. Send /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.
    • Group target instead? Add the bot to the group, then send any message in that group. (You may need to disable BotFather's privacy mode via /setprivacy → Disable so the bot can read group messages.)
  3. Run:
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.

Step 4 — Turn Sentinel on and verify

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.)

Guardrails

  • Activate hive.browser-automation and obey its lifecycle rules. Never run google-chrome/chromium, --remote-debugging-port, or kill any browser/bridge process — you drive the user's existing Chrome.
  • Reuse, don't duplicate. If sentinel_setup status shows telegram configured, the bot already exists — use it; don't spin up another via /newbot.
  • Never invent, guess, or paraphrase a token. Read it by running hive-browser page 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.
  • Don't try to log into Telegram for the user — you can't enter their phone/SMS code. If Telegram Web shows a login screen, ask them to sign in, then continue.
  • Reach BotFather and the bot via in-app search, not t.me/ links (which often don't open the chat).
  • The provider id is exact: telegram. The destination is {"chat_id": "…"} (a number as a string), not a username or link.
  • A Telegram bot cannot initiate contact — if detect_chat stays PENDING, the user simply 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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Troubleshoot browser automation when clicks, typing, scrolling, or page snapshots fail on complex websites. Inspect page structure and errors, apply waits or alternative interaction methods, and verify the fix on both problematic and simple pages.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fix scrolling that misses a feed’s scrollable container
  • Investigate clicks and text entry that have no effect
  • Handle stalled or outdated page snapshots
aden-hive/hive1.1만2026년 10월 18일 업데이트

Automate an existing Chrome session through hive-browser commands. Covers page inspection, screenshot-based clicks, text entry, and result checks, including controls hidden inside nested web components and recovery steps for connection timeouts.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Fill in web forms through Chrome
  • Click visible controls missing from page snapshots
  • Check that a rich-text editor accepted input
aden-hive/hive1.1만2026년 10월 18일 업데이트

Create charts for numeric data and diagrams for processes or relationships. Explains how to choose ECharts or Mermaid, apply clear formatting, and use chart_render to display the result in chat and save a downloadable PNG.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Comparing revenue across regions or products
  • Showing trends across multiple metrics
  • Turning workflows or system relationships into diagrams
aden-hive/hive1.1만2026년 10월 18일 업데이트

Track shared work across AI agents using a SQLite database. The skill claims tasks, records progress and evidence for each step, skips completed work, and checks required procedures before marking a task complete.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Assigning work from a shared queue to multiple agents
  • Resuming tasks while skipping completed steps
  • Checking required procedures before task completion
aden-hive/hive1.1만2026년 10월 18일 업데이트

Preserve essential information during long agent tasks by extracting URLs, IDs, relevant fields, and conclusions into working notes. It also specifies where to record task handoff details before older tool results leave the agent’s context.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Keep source URLs and key excerpts during research
  • Preserve API fields and IDs needed later
  • Record analysis conclusions before context pruning
aden-hive/hive1.1만2026년 10월 18일 업데이트

Handle failed tool calls with a clear recovery process. The skill distinguishes temporary problems from input or setup issues, chooses whether to retry or change approach, and records failures so unsuccessful tasks are not silently lost.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Deciding whether to retry a failed tool call
  • Correcting inputs after setup or validation errors
  • Switching approaches after repeated tool failures
aden-hive/hive1.1만2026년 10월 18일 업데이트

aden-hive의 스킬 모두 보기

이 스킬의 문제 신고