hive.telegram-notifications-setup
यह क्या करती है
यह स्किल AI को एक Telegram बॉट बनाने के चरण बताती है, जो रुके हुए कामों के बारे में आपको संदेश भेज सके। यह उन लोगों के लिए है जो Telegram में अलर्ट और जवाब चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई काम अटकने पर आप Telegram पर संदेश चाहते हैं।
- ✓जब आप Telegram से चल रहे काम को जवाब देना चाहते हैं।
- ✓जब अलर्ट के लिए एक Telegram बॉट बनाना हो।
Skill का लिंक
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/telegram-notifications-setup/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जब कोई काम अटके तो मुझे Telegram पर संदेश मिले, और मैं अपने फ़ोन से उसका जवाब दे सकूँ।”
हर हफ़्ते 5 नई skills, 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 का वह टूल है जिससे बॉट बनाए और संभाले जाते हैं।
क्या यह टेस्ट संदेश भेजती है?
हाँ। यह जाँचने के लिए एक टेस्ट संदेश भेजती है कि अलर्ट काम करता है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
browser-edge-cases
11kयह आपके एजेंट को LinkedIn, X या भारी स्क्रिप्ट वाले पेजों जैसी जटिल साइटों पर विफल होने वाले ब्राउज़र ऑटोमेशन को ठीक करने में मदद करती है।
hive.browser-automation
11kयह आपके एजेंट को hive-browser टूल से और स्क्रीनशॉट व क्लिक के ज़रिए आपके अपने Chrome ब्राउज़र को नियंत्रित करना सिखाती है।
hive.colony-progress-tracker
11kयह आपके एजेंट को कार्य लेने और साझा डेटाबेस में अपने चरण व जाँच दर्ज करने में मदद करती है, ताकि काम चलते-चलते ट्रैक हो।
hive.context-preservation
11kयह आपके एजेंट को लंबे टूल नतीजों से ज़रूरी बातें नोट्स में सहेजने में मदद करती है, इससे पहले कि पुराने विवरण उसकी मेमोरी से हटें।
मिलती-जुलती skills
discord-user-post
394kयह आपके एजेंट को, आपकी मंज़ूरी के बाद, चैनल की पुष्टि करके आपके नाम से Discord डेस्कटॉप ऐप के ज़रिए संदेश भेजने देती है।
configure-channel
394kयह आपके एजेंट को Telegram जैसे चैट ऐप को OpenClaw से जोड़ना, बॉट टोकन सुरक्षित रखना और संदेश आने-जाने की जांच करना सिखाती है।
discord
394kयह आपके एजेंट को OpenClaw के ज़रिए Discord संदेश पढ़ने, भेजने, बदलने और उन पर रिएक्शन देने में मदद करती है, बदलाव से पहले सटीक संदेश जांचकर।