Claude

Anthropic's Claude API for building custom apps and bots (e.g. Telegram).

When to use it

Hands-on

Telegram

Use the custom bot pattern: Telegram → your server → Claude API → reply. No native Claude Telegram app; we provide a skeleton.

See Telegram hub for comparison and security notes.

Quick product recipe

Claude API + Telegram bot that answers from a PDF or URL (~15 min).

  1. Clone this repo; cd playgrounds/telegram-ai-bot.
  2. Set TELEGRAM_BOT_TOKEN and ANTHROPIC_API_KEY in env (or .env).
  3. Install deps: pip install -r requirements.txt (or see README).
  4. Run the bot: python bot.py (or the command in the README).
  5. Send a message in Telegram; the bot replies via Claude. Optionally extend the bot to accept a URL and summarize it with Claude.

Playground: playgrounds/telegram-ai-bot/.