Git Product home page Git Product logo

go-claude-tg-bot's Introduction

Go Claude Telegram Bot

A Telegram bot that utilizes the Claude AI language model to provide interactive conversations and assistance to users.

Introduction

The Go Claude Telegram Bot is a powerful tool built using the Go programming language and the Claude AI language model. It enables users to engage in interactive conversations and receive assistance directly through their Telegram chats. Whether you need help with writing, analysis, question answering, math, or coding, Go Claude is here to assist.

Installation

Via Docker

docker run nikitosnik/go-claude-tg-bot:latest

On Local machine

  1. Clone the repository:
git clone https://github.com/NikitosnikN/go-claude-tg-bot.git
  1. Install the required dependencies:
cd go-claude-tg-bot
go mod download
  1. Build the bot:
go build
  1. Run the bot:
go run cmd/bot/main.go run

Configuration

It is possible to configure application via 2 ways:

  • via CLI arguments. Run ./bot run --help or go run cmd/bot/main.go run --help for more info.
  • via Env variables. See the table with variables below.
Variable Name Description
APP_TG_BOT_TOKEN Telegram bot token obtained from the BotFather..
APP_ANTHROPIC_API_KEY Anthropic API key.
APP_ALLOWED_USERNAMES (Optional) Allowed usernames to use bot, separated by comma. If not set, anyone can use bot.
APP_CLAUDE_MODEL (Optional) Claude model name.
APP_PROXY (Optional) Proxy URL. Used for Anthropic API only.

Usage

  1. Run bot:
./bot run
  1. Open your Telegram app and search for your bot using its username.

  2. Start a conversation with the bot and send messages to interact with the Claude AI.

  3. Use the available commands to perform specific actions or get help:

    • /start: Start the conversation with the bot
    • /help: Get a list of available commands and their descriptions
    • Send message, send only photo or send photo and message to get completion from Claude AI

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.

go-claude-tg-bot's People

Contributors

nikitosnikn avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.