Skip to content

fiv3fingers/openclaw-telegram-ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

OpenClaw Telegram AI Agent Bot πŸš€

Connect OpenClaw to Telegram and Run Your Own Self-Hosted AI Assistant

This repository demonstrates how to connect OpenClaw to a Telegram Bot and run a production-ready, self-hosted Telegram AI Agent using the OpenClaw Gateway.

openclaw-telegram-ai-agent.mp4

If you're searching for:

  • openclaw
  • openclaw telegram bot
  • telegram AI agent bot
  • connect openclaw to telegram
  • self-hosted telegram ai assistant

You're in the right place.


πŸ”₯ What This Project Does

This project shows how to:

  • Create a Telegram bot using BotFather
  • Connect the bot to OpenClaw Gateway
  • Configure Telegram channel settings in OpenClaw
  • Pair and approve users securely
  • Enable streaming AI responses
  • Deploy a persistent AI assistant on Telegram

This turns Telegram into a powerful AI automation interface powered by OpenClaw.


🧠 What is OpenClaw?

OpenClaw is a self-hosted AI agent gateway that connects:

  • Messaging platforms (Telegram, WhatsApp, Discord, etc.)
  • Large Language Models (OpenAI, Anthropic, etc.)
  • Custom tools & automation workflows

Instead of just chatting, your AI can execute actions.


πŸ— Architecture Overview

Telegram User
↓
Telegram Bot (BotFather Token)
↓
OpenClaw Gateway
↓
AI Agent + LLM + Tools

OpenClaw acts as the bridge between Telegram and your AI runtime.


βš™ Step-by-Step: Connect OpenClaw to Telegram

1️⃣ Create Telegram Bot

  1. Open Telegram
  2. Search for @BotFather
  3. Run /newbot
  4. Copy your Bot Token

2️⃣ Configure OpenClaw

Edit your OpenClaw configuration file:

{
  "channels": {
    "telegram": {
      "enabled": true,
      "botToken": "YOUR_TELEGRAM_BOT_TOKEN",
      "dmPolicy": "pairing",
      "groups": {
        "*": {
          "requireMention": true
        }
      }
    }
  }
}

About

Production-ready guide for connecting OpenClaw to a Telegram Bot. Build a self-hosted Telegram AI Agent using OpenClaw Gateway, pairing, and streaming responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors