hive.telegram-notifications-setup
Fungsinya
Skill ini memandu AI membuat bot Telegram yang bisa mengirimi Anda pesan tentang tugas yang macet. Skill ini ditujukan untuk orang yang ingin peringatan dan balasan lewat Telegram.
Kapan dipakai
- โSaat Anda ingin pesan Telegram jika sebuah tugas macet.
- โSaat Anda ingin membalas tugas yang sedang berjalan dari Telegram.
- โSaat Anda membutuhkan bot Telegram yang dibuat untuk peringatan.
Link skill
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/telegram-notifications-setup/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin mendapat pesan Telegram saat sebuah tugas macet, dan bisa membalas dari ponsel saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI memakai browser untuk membuat bot lewat BotFather di Telegram Web, menyimpan tokennya, menemukan chat Anda, lalu mengirim pesan uji.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah saya harus membuat bot sendiri?
Tidak. Skill membuat bot di Telegram Web dan menyimpan tokennya tanpa Anda menempelkannya.
Apa itu BotFather?
BotFather adalah alat Telegram untuk membuat dan mengelola bot.
Apakah dikirim pesan uji?
Ya. Skill mengirim pesan uji untuk memastikan peringatannya berfungsi.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 11k
- Peringkat
- #11807
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
browser-edge-cases
11kMembantu agent Anda memperbaiki otomatisasi browser yang gagal di situs yang rumit, seperti LinkedIn, X atau halaman dengan skrip yang berat.
hive.browser-automation
11kMengajari agent Anda mengendalikan browser Chrome Anda sendiri dengan alat hive-browser, memakai tangkapan layar dan klik.
hive.colony-progress-tracker
11kMembantu agent Anda mengklaim tugas dan mencatat langkah serta pemeriksaannya di basis data bersama, sehingga pekerjaan terlacak saat berjalan.
hive.context-preservation
11kMembantu agent Anda menyimpan fakta penting dari hasil alat yang panjang ke dalam catatan sebelum detail lama dihapus dari memorinya.
Skill serupa
discord-user-post
394kMemungkinkan agent Anda mengirim pesan yang sudah Anda setujui ke Discord atas nama Anda, lewat aplikasi desktop Discord, setelah channel tujuannya dipastikan.
configure-channel
394kMengajari agent Anda menghubungkan aplikasi chat seperti Telegram ke OpenClaw, menyimpan token bot dengan aman, dan memastikan pesan benar-benar mengalir.
discord
394kMembantu agent Anda membaca, mengirim, mengedit, dan memberi reaksi pada pesan Discord lewat OpenClaw, dengan memeriksa pesan yang tepat sebelum perubahan dilakukan.