telegram-connect
/telegram-connect
Konfiguruje Telegram jako centrum powiadomień: tworzy grupę, podłącza bota i zapisuje identyfikator czatu.
- Autor
- egregore-labs ↗
- Repozytorium
- egregore ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 16.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 16.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konfiguruje Telegram jako centrum powiadomień: tworzy grupę, podłącza bota i zapisuje identyfikator czatu.
Wyzwalacze z opisu
Oryginalny opis (EN)
Set up Telegram as a notification center for your Egregore — creates the group, links the bot, and stores the chat ID. Use for /telegram-connect, 'connect telegram', or 'set up telegram notifications'.
Jak działa
- When to invoke
- Step 1: Check current state
- Step 2: Guide setup
- Step 3: Store and test
- Step 4: Telemetry
- Rules
Podgląd SKILL.md
---
name: telegram-connect
description: "Set up Telegram as a notification center for your Egregore — creates the group, links the bot, and stores the chat ID. Use for /telegram-connect, 'connect telegram', or 'set up telegram notifications'."
---
Set up Telegram as a notification center for your Egregore.
Arguments: $ARGUMENTS (none expected)
## When to invoke
**Trigger phrases:**
- "set up telegram", "connect telegram", "add notifications", "telegram-connect"
- "telegram group", "add telegram", "enable telegram", "link telegram"
- "notification setup", "set up notifications"
**Disambiguation:**
- "send a message on telegram" → NOT this — use the separate notification
consent protocol in `.claude/context/notification-consent.md`
- "announce something" → NOT this — use `/announce`
## Step 1: Check current state
Check for existing `telegram_chat_id` — it lives in `.egregore-state.json` (preferred) or `egregore.json` (legacy):
```bash
jq -r '.telegram_chat_id // empty' .egregore-state.json 2>/dev/null || jq -r '.telegram_chat_id // empty' egregore.json 2>/dev/null
```
If already set, show:
```
Telegram is already connected.
Chat ID: {chat_id}
Group link: {group_link}
To update it, remove `telegram_chat_id` from .egregore-state.json and run `/telegram-connect` again.
```
And stop.
## Step 2: Guide setup
Read the org slug from `egregore.json`:
```bash
jq -r '.slug // empty' egregore.json 2>/dev/null
```
If slug is set, generate the deep link with it: `https://t.me/Egregore_clbot?startgroup=org_{slug}`
If slug is empty, fall back to: `https://t.me/Egregore_clbot?startgroup=true`
Show:
```
To set up Telegram notifications:
1. Create a Telegram group for your team
2. Add the bot: {deep_link}
3. The bot will respond with your Chat ID — copy it
4. Get the invite link: group name → Edit → Invite Links → Copy
5. Paste both below
```
Then ask for the chat ID with a structured question when available and permitted in this session; otherwise ask in plain text:
```
Chat ID (from the bot's message in your group):
```
Validate: must be a negative number (e.g., `-1001234567890`) — reject anything else with "That doesn't look like a Telegram chat ID. It should be a negative number like -1001234567890."
Then ask for the group invite link with a structured question when available and permitted in this session; otherwise ask in plain text:
```
Group invite link:
```
Validate: must start with `https://t.me/` — reject anything else with "That doesn't look like a Telegram invite link."
## Step 3: Store and test
Read `.egregore-state.json`, add `telegram_chat_id` and `telegram_group_link` fields, write it back.
**Important:** Write to `.egregore-state.json`, NOT `egregore.json`. The state file is symlinked across worktrees so the config propagates everywhere. No branch, commit, or push is needed — it's an untracked local file.
Offer an optional test through the separate exact notification consent flow in
`.claude/context/notification-consent.md`. Saving the Telegram configuration is
not consent to send. Prepare without sending:
```bash
mkdir -p tmp
```
```bash
bash bin/notify.sh plan group "Telegram connected! 🎉" > tmp/telegram-connect-plan.json
```
```bash
jq -r '.plan_id, .digest' tmp/telegram-connect-plan.json
```
Use the printed values as `{plan_id}` and `{digest}`, respectively; quote
placeholders in single quotes when you use them in a command, and write any
single quote inside a value as `'\''`. Use them for the notification consent
flow. Read the exact preview fields:
```bash
jq -r '.org, .recipient, .channels, .deliveries, .message' tmp/telegram-connect-plan.json
```
Show the organization, group/channel, and exact message in a dedicated Send /
Edit / Cancel checkpoint. If approved and dispatched, show:
```
Telegram connected — test message sent to your group.
```
If cancelled, show `Telegram connected — no test message sent.` If planning or
dispatch fails, show the error and suggest checking the chat ID.
## Step 4: Telemetry
```bash
bash bin/telemetry.sh emit "command" '{"command":"telegram-connect"}' 2>/dev/null &
```
## Rules
- Never expose credentials in tool output
- The bot username is `@Egregore_clbot` — NOT `@egregore_bot`
- Only store the group invite link and chat ID, not bot tokens (those live on the API server)
- Store in `.egregore-state.json` (symlinked, untracked) — NOT `egregore.json` (tracked, branch-specific)
- No commit/push needed — state file is local and shared via symlinks
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · egregore-labs/egregore | 100 | MIT |
| egregore-labs/egregore | 86 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki cf2cd062a15c (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100telegram
Czyta i wysyła wiadomości w czatach połączonego bota Telegram, pobiera przesłane pliki i pomaga skonfigurować bota. - 90configure
Konfiguruje kanał Telegram: zapisuje token bota, sprawdza zasady dostępu oraz status kanału. - 100slack-connect
Konfiguruje Slack jako kanał powiadomień dla Egregore: tworzy aplikację, zaprasza bota i wiąże kanał. - 100configure
Konfiguruje kanał Telegram: zapisuje token bota i przegląda politykę dostępu, gdy użytkownik wkleja token, prosi o konfigurację lub chce sprawdzić status kanału. - 86slack-connect
Podłącza Slacka jako kanał powiadomień dla Egregore: tworzy aplikację w workspace, zaprasza bota i przypisuje kanał. - 90configure
Konfiguruje kanał Telegram: zapisuje token bota, wybiera model Whisper do wiadomości głosowych i sprawdza dostęp.