telegram

Routes Telegram bot operations to Claude Code with memory-enabled conversations and session continuity.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dudleypeacockqa/leverage_flo_website_marketing_agency --skill telegram-dudleypeacockqa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: telegram
Source: https://github.com/dudleypeacockqa/leverage_flo_website_marketing_agency/tree/main/.bible/aios/skills/telegram
Command: npx skills add https://github.com/dudleypeacockqa/leverage_flo_website_marketing_agency --skill telegram-dudleypeacockqa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-dotenv, pyyaml, requests, openai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Route Telegram messages to Claude Code with persistent memory. The bot ensures conversations stay contextual by loading memories and persisting exchanges for future recall.

Core Features & Use Cases

  • Memory-aware routing: Load relevant memories from mem0/pgvector to provide context for Claude Code responses.
  • Real-time daemon: Runs as a long-running Telegram bot that polls the Telegram Bot API and streams Claude replies.
  • Security & governance: Enforces whitelist, rate limits, content filtering, and session continuity to guard against misuse.

Quick Start

Start the Telegram daemon to begin handling messages and memory-enabled conversations.

Frequently Asked Questions about telegram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route Telegram messages to Claude Code with persistent memory?

A real-time daemon polls the Telegram Bot API, performs semantic search to auto-load relevant memories from pgvector, invokes the Claude CLI with that context, and streams generated replies back to the Telegram chat session.

How does memory-enabled conversation work with a Telegram bot and Claude CLI?

The daemon persists new chat exchanges into a pgvector vector store after each Claude CLI invocation, enabling future semantic search queries to retrieve and auto-load relevant conversation history as context.

What security and governance features should a Telegram bot proxy for Claude Code include?

It enforces whitelist validation to restrict authorized users, applies rate limiting to prevent API abuse, filters message content, and maintains session continuity to guard against misuse during real-time Telegram bot operations.

Do I need pgvector to enable semantic search for a Claude Code Telegram bot?

Yes, pgvector is required as the vector store to persist conversation memories and enable the semantic search mechanism that auto-loads relevant contextual history for Claude Code responses.

Can I use Python to build a long-running daemon that polls Telegram chats and invokes Claude?

Yes, you can build it using Python, utilizing the requests library for Telegram Bot API polling, python-dotenv for environment configuration, and pyyaml for managing the daemon's configuration files.

Why does my Telegram bot lose conversation context when routing messages to Claude Code?

Your Telegram bot loses conversation context when routing messages to Claude Code if it lacks a memory auto-load mechanism to query pgvector and retrieve relevant past exchanges before invoking the CLI.