Skip to content
Back to skills

Telegram Doctor

ASecurity

Diagnose Telegram configuration and connectivity issues. Use when user reports problems with Telegram sync, connection errors, or wants to troubleshoot.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add lycfyi/community-agent-plugin --skill telegram-doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Telegram Doctor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Telegram Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lycfyi-telegram-doctor/badge)](https://www.skillsdirectory.com/skills/lycfyi-telegram-doctor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: telegram-doctor
description: "Diagnose Telegram configuration and connectivity issues. Use when user reports problems with Telegram sync, connection errors, or wants to troubleshoot."
---

# Telegram Doctor

Diagnose configuration and connectivity issues with Telegram integration.

## When to Use

- User says "Telegram not working" or "diagnose Telegram"
- User reports connection or authentication errors
- User says "check Telegram setup" or "troubleshoot Telegram"
- Before asking for help with Telegram issues
- When sync or other Telegram commands fail unexpectedly

## How to Execute

```bash
python ${CLAUDE_PLUGIN_ROOT}/tools/telegram_doctor.py
```

## What It Checks

1. **Environment file** - `.env` exists in cwd
2. **API ID** - `TELEGRAM_API_ID` is set and numeric
3. **API hash** - `TELEGRAM_API_HASH` is set
4. **Session string** - `TELEGRAM_SESSION` is set and valid length
5. **Authentication** - Credentials can connect to Telegram API
6. **Config file** - `config/agents.yaml` exists and is valid YAML
7. **Group configured** - A default group is selected
8. **Data directory** - `data/` is writable

## Output

Displays results with:
- ✓ for passed checks
- ✗ for failed checks

For each failure, provides a **suggested fix** that the user can run manually.

**Important:** This tool only diagnoses issues - it does not modify any files.

## Example Output

```
telegram-doctor results:

  ✓ Environment file (.env found)
  ✓ API ID (12345678)
  ✓ API hash (abc123...xyz9)
  ✗ Session string (Session appears too short)
  ✗ Config file (config/agents.yaml not found)
  ✗ Group configured (No default group set)
  ✓ Data directory (./data)

Some checks failed. Suggested fixes:

  • Session string:
    Generate a fresh session: python scripts/generate_session.py

  • Config file:
    Run telegram-init to create the config file

  • Group configured:
    Run telegram-init to select a group

(Run these steps manually - doctor does not modify files)
```

## Next Steps

After fixing issues:
1. Run `telegram-init` to reconfigure if needed
2. Run `telegram-sync` to test connectivity

Files in this skill

  • SKILL.md2.1 KB
  • requirements.yaml73 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.