A Telegram bot that utilizes the Claude AI language model to provide interactive conversations and assistance to users.
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.
docker run nikitosnik/go-claude-tg-bot:latest
- Clone the repository:
git clone https://github.com/NikitosnikN/go-claude-tg-bot.git
- Install the required dependencies:
cd go-claude-tg-bot
go mod download
- Build the bot:
go build
- Run the bot:
go run cmd/bot/main.go run
It is possible to configure application via 2 ways:
- via CLI arguments. Run
./bot run --help
orgo 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. |
- Run bot:
./bot run
-
Open your Telegram app and search for your bot using its username.
-
Start a conversation with the bot and send messages to interact with the Claude AI.
-
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
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.
This project is licensed under the MIT License.