claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Frameworks & SDKs

Claude-Telegram-Bot

Anthropic Claude & Google Bard Bot for Telegram.

// Frameworks & SDKs[ api ][ web ][ claude ]#claude#anthropic#bard#bot#chatbot#claude-ai#google-bard#gpt#frameworksMIT$open-sourceupdated 15 days ago
Archived
5/100
last commit almost 3 years ago
last release almost 3 years ago
releases 17
open issues 11
// install
git clone https://github.com/ciuzaak/Claude-Telegram-Bot

Claude & Bard Telegram Bot

This is a Telegram bot that intereacts with Anthropic Claude and Google Bard.

If you only have access to one of the models, you can still continue to use this bot. Some functions may be limited due to lack of authorization for the other model.

Features

  • Support of official Claude API and reverse engineered Bard API
  • Support of partial Markdown formatting
  • Send extremely long inputs in segments
  • Resend the question and regenerate the answer
  • Private chat, group chat, independent chat session
  • Claude only:
    • Streaming output
    • Modify model's version and temperature
  • Bard only:
    • Toogle between different draft responses
    • View reference links and Google Search keywords
    • View images from Google Search
ClaudeBard
✅ Streaming output
❌ Access to the Internet
❌ Streaming output
✅ Access to the Internet
demo_claudeClaude-Telegram-Bot

Getting Started

Deployment (Zeabur)

Deployment (Local)

  1. Clone this repository.

  2. Configure the bot in the following two ways:

    1. Create config/config.yml and fill in the information with reference to config/config.example.yml.

    2. or Set environment variables:

      export BOT_TOKEN="your bot token"
      export USER_IDS="user_id1, user_id2,..."
      export CLAUDE_API="your claude api" # ignore it if you don't want to use claude
      export BARD_API="__Secure-1PSID, __Secure-1PSIDTS" # ignore it if you don't want to use bard
      
  3. Start the bot in the following two ways:

    1. Docker (with docker engine pre-installed):

      docker compose up
      
    2. or Scripts (with python >= 3.8 and python3-venv pre-installed):

      # create the virtual environment
      bash scripts/setup.sh
      
      # start the bot
      bash scripts/run.sh
      

Usage

Commands

  • /id: get your chat identifier
  • /start: start the bot and get help message
  • /help: get help message
  • /reset: reset the chat history
  • /settings: show Claude & Bard settings
  • /mode: switch between Claude and Bard
  • /model NAME: change model (Claude only)
    • Options: claude-2, claude-instant-1
  • /temp VALUE: set temperature (Claude only)
    • Range: float in [0, 1]
    • Impact: amount of randomness injected into the response
    • Suggestion: temp closer to 0 for analytical / multiple choice, and temp closer to 1 for creative and generative tasks
  • /cutoff VALUE: adjust cutoff (Claude only)
    • Range: int > 0
    • Impact:: smaller cutoff indicates higher frequency of streaming output
    • Suggestion: 50 for private chat, 150 for group chat
  • /seg: send messages in segments, example below:
    1. Send /seg first
    2. Paste a long text and send (or send a series of text in segments)
    3. Input your other questions and send
    4. Send /seg again
    5. Bot will respond and you can continue the conversation
  • /retry: regenerate the answer. Use /retry TEXT to modify your last input.

Others

  • 📝 View other drafts: click to see other drafts (Bard Only)
  • 🔍 Google it: click to view the search results (Bard Only)

Acknowledgements

This code is based on Lakr233's ChatBot-TGLM6B.

The client library for Claude API is anthropics's anthropic-sdk-python.

The client library for Bard API is acheong08's Bard.

Huge thanks to them!!! 🥰🥰🥰

// compatibility

Platformsapi, web
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

// faq

What is Claude-Telegram-Bot?

Anthropic Claude & Google Bard Bot for Telegram.. It is open-source on GitHub.

Is Claude-Telegram-Bot free to use?

Claude-Telegram-Bot is open-source under the MIT license, so it is free to use.

What category does Claude-Telegram-Bot belong to?

Claude-Telegram-Bot is listed under data in the Claudeers registry of Claude-compatible tools.

1 views
207 stars
unclaimed
updated 15 days ago

// embed badge

Claude-Telegram-Bot on Claudeers
[![Claudeers](https://claudeers.com/api/badge/claude-telegram-bot.svg)](https://claudeers.com/claude-telegram-bot)

// retro hit counter

Claude-Telegram-Bot hit counter
[![Hits](https://claudeers.com/api/counter/claude-telegram-bot.svg)](https://claudeers.com/claude-telegram-bot)

// reviews

// guestbook

0/500

// related in Frameworks & SDKs

🔓

An open-source AI coding agent that lives in your terminal.

// frameworksQwenLM/TypeScript25,830Apache-2.0[ claude ]
🔓

Claude Code 泄露源码 - 本地可运行版本,新增跨平台桌面端软件补齐Computer Use(附带核心模块解析)

// frameworksNanmiCoder/TypeScript13,109NOASSERTION[ claude ]
🔓

LangGPT: Empowering everyone to become a prompt expert! 🚀 📌 结构化提示词(Structured Prompt)提出者 📌 元提示词(Meta-Prompt)发起者 📌 最流行的提示词落地范式 | Language of GPT The p…

// frameworkslanggptai/Jupyter Notebook12,304Apache-2.0[ claude ]
🔓

Multi-Agent Harness for Production AI

// frameworksaden-hive/Python10,632Apache-2.0[ claude ]
→ see how Claude-Telegram-Bot connects across the ecosystem