hive.telegram-notifications-setup
What it does
This skill walks an AI through creating a Telegram bot that can message you about stalled tasks. It is for people who want alerts and replies in Telegram.
When to use it
- βWhen you want a Telegram message if a task gets stuck.
- βWhen you want to reply to a running task from Telegram.
- βWhen you need a Telegram bot created for alerts.
Skill link
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/telegram-notifications-setup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to get a Telegram message when a task gets stuck, and reply from my phone.β
5 new skills a week. 1 minute to read.
How it works
The AI uses the browser to create a bot through BotFather in Telegram Web, stores its token, finds your chat and sends a test message.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Do I need to make the bot myself?
No. The skill creates the bot in Telegram Web and stores its token without you pasting it.
What is BotFather?
BotFather is Telegram's tool for creating and managing bots.
Does it send a test message?
Yes. It sends a test message to check that the alert works.
Details
Original description by the author
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
Popularity
- GitHub stars
- 11k
- Ranking position
- #11807
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
browser-edge-cases
11kHelps your agent fix browser automation that fails on tricky sites such as LinkedIn, X or pages with heavy scripts.
hive.browser-automation
11kTeaches your agent to control your own Chrome browser with the hive-browser tool, using screenshots and clicks.
hive.colony-progress-tracker
11kHelps your agent claim tasks and record its steps and checks in a shared database, so work is tracked as it goes.
hive.context-preservation
11kHelps your agent save key facts from long tool results into notes before older details are removed from its memory.
Similar skills
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
configure-channel
394kTeaches your agent to connect a chat app such as Telegram to OpenClaw, store the bot token safely, and check that messages flow.
discord
394kHelps your agent read, send, edit, and react to Discord messages through OpenClaw, checking the exact message before making changes.