hive.telegram-notifications-setup
できること
このスキルは、止まったタスクについてあなたにメッセージを送れるTelegramボットを作る手順を、AIが案内します。アラートをTelegramで受け取り、そこで返信したい人向けです。
使う場面
- ✓タスクが止まったとき、Telegramでメッセージを受け取りたいとき。
- ✓Telegramから、動いているタスクに返信したいとき。
- ✓アラート用のTelegramボットを作る必要があるとき。
スキルのリンク
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/telegram-notifications-setup/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“タスクが止まったらTelegramでメッセージを受け取り、スマートフォンから返信できるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、ブラウザを使い、Telegram WebでBotFatherからボットを作成します。そのトークンを保存し、あなたのチャットを見つけて、テストメッセージを送ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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,typeyour 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" --jsonin 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
- Run
sentinel_setup({"action": "status"}). If it showstelegramalready 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. - Confirm the user is signed into Telegram: run
hive-browser open/hive-browser navigate https://web.telegram.org/k/ --jsonin 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.
- Use in-app search to reach BotFather — not
t.me/URLs.t.me/BotFather(andhive-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), typeBotFather, and click the verified result (blue check) to open the chat. - 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.
- a display name (e.g.
- On success BotFather replies with "Use this token to access the HTTP API:"
followed by the token
123456789:AAE…. Read it by runninghive-browser page text ".chat-message:last-child" --jsonin the terminal, not off a screenshot — the token is long and a single transposed character makesstore_tokenfail. Copy the exactdigits:reststring.
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", …)withcredential_idtelegram(fieldaccess_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:
- Open the new bot's chat: search its
@username(top-left search) and open the result — same as finding BotFathe
よくある質問
ボットは自分で作る必要がありますか?
いいえ。このスキルがTelegram Webでボットを作成し、あなたが貼り付けなくてもトークンを保存します。
BotFatherとは何ですか?
BotFatherは、Telegramでボットを作成し管理するためのTelegramのツールです。
テストメッセージは送られますか?
はい。アラートが機能するか確認するため、テストメッセージを送ります。
詳細
作者による元の説明
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.
repo: aden-hive/hive
人気
- GitHubのスター
- 11k
- ランキング
- #11807
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
browser-edge-cases
11kエージェントが、LinkedIn、X、スクリプトの多いページなど、扱いの難しいサイトでブラウザ自動化が失敗する原因を直せるよう支援します。
hive.browser-automation
11kエージェントが、hive-browserツールを使い、スクリーンショットとクリックで、自分のChromeブラウザを操作できるよう支援します。
hive.colony-progress-tracker
11kエージェントが、タスクを確保し、その手順と確認を共有データベースに記録できるよう支援します。作業が進むにつれて追跡されます。
hive.context-preservation
11kエージェントが、長いツールの結果から重要な事実を、メモとして保存し、古い詳細がメモリから消される前に残せるよう支援します。
似ているスキル
discord-user-post
394kエージェントが、承認済みのお知らせをDiscordのデスクトップアプリからあなたとして投稿できるよう支援します。投稿前に正確なチャンネルを確認します。
configure-channel
394kTelegramなどのチャットアプリをOpenClawに接続し、ボットトークンを安全に保存して、メッセージが流れることを確認するようエージェントに教えます。
discord
394kOpenClawを通じてDiscordのメッセージを読み、送信し、編集し、リアクションするようエージェントを支援します。変更の前に正確なメッセージを確認します。