telegram-deepseek-bot  by yincongcyincong

Telegram bot for AI-powered responses using DeepSeek API

created 5 months ago
483 stars

Top 64.4% on sourcepulse

GitHubView on GitHub
Project Summary

This Golang-based Telegram bot integrates with DeepSeek AI to provide intelligent, context-aware responses and supports multimodal interactions. It's designed for users who want to leverage advanced AI capabilities within Telegram, offering features like streaming replies, image and voice input, and function calling.

How It Works

The bot utilizes the DeepSeek API for AI-generated responses and supports various DeepSeek models (chat, coder, reasoner). It handles streaming output for a more dynamic user experience and can process image and voice inputs via specific configurations, leveraging Volcengine models for image generation. The architecture supports local deployment or cloud hosting and includes database integration (SQLite or MySQL) for managing user data and chat history.

Quick Start & Requirements

  • Install: Clone the repository, run go mod tidy.
  • Run: go run main.go -telegram_bot_token=... -deepseek_token=... or use Docker (docker run ... jackyin0822/telegram-deepseek-bot:latest).
  • Prerequisites: Go 1.24+, Telegram Bot Token, DeepSeek Auth Token. Optional: Volcengine AK/SK for image/video features, database credentials.
  • Docs: 中文文档

Highlighted Details

  • Supports multiple DeepSeek models (chat, coder, reasoner).
  • Enables image and voice input for multimodal communication.
  • Offers function call capabilities via MCP protocol transformation.
  • Allows custom DeepSeek URLs and proxy configurations.
  • Includes commands for clearing chat history, retrying, changing modes, and checking token balance.

Maintenance & Community

  • The project is licensed under the MIT License.
  • Community interaction is encouraged via issues and pull requests.

Licensing & Compatibility

  • MIT License. Permissive for commercial use and closed-source linking.

Limitations & Caveats

The bot requires specific API keys for Telegram and DeepSeek. Image and video generation features depend on Volcengine API keys and are noted as not directly supported by DeepSeek itself. Configuration for these multimodal features requires consulting separate documentation.

Health Check
Last commit

21 hours ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
11
Star History
82 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.