<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          telegram-deepseek-bot 基于 Golang 構(gòu)建的 Telegram 機(jī)器人

          聯(lián)合創(chuàng)作 · 2025-02-19 13:38

          本项目是一个基于 Golang 构建的 Telegram 机器人,集成了 DeepSeek API,提供 AI 驱动的智能回复。支持 流式输出,使交互更加自然流畅。

          🚀 功能特点

          • 🤖 AI 智能回复:利用 DeepSeek API 提供聊天机器人服务。
          • 流式响应:实时发送回复,提升用户体验。
          • 🎯 命令处理:支持自定义命令。
          • 🏗 简易部署:可本地运行,也可部署到云服务器。

          🤖 使用示例

          使用演示视频

          📌 运行环境

          📥 安装步骤

          1. 克隆仓库

            git clone https://github.com/yourusername/deepseek-telegram-bot.git

            cd deepseek-telegram-bot

          2. 安装依赖

            go mod tidy

          3. 设置环境变量

            export TELEGRAM_BOT_TOKEN="your_telegram_bot_token"

            export DEEPSEEK_TOKEN="your_deepseek_api_key"

          🚀 运行方式

          本地运行:

          go run main.go

          或使用命令行参数:

          go run main.go -telegram_bot_token=telegram-bot-token -deepseek_token=deepseek-auth-token

          使用 Docker 运行:

          docker pull jackyin0822/telegram-deepseek-bot:latest

          docker run -d -e TELEGRAM_BOT_TOKEN="telegram-bot-token" -e DEEPSEEK_TOKEN="deepseek-auth-token" --name my-telegram-bot jackyin0822/telegram-deepseek-bot:latest

          ⚙️ 配置

          可以通过环境变量配置机器人:

          变量名称描述
          TELEGRAM_BOT_TOKEN你的 Telegram 机器人 Token
          DEEPSEEK_TOKENDeepSeek API 认证 Token
          MODE运行模式(sample / complex)
          CUSTOM_URL自定义 DeepSeek API 地址

          运行模式(MODE)

          • sample:使用 DeepSeek 默认配置。
          • complex:允许自定义 DeepSeek 配置,目前支持选择 DeepSeek 模式(chat、coder、reasoner)。

          🚀 部署

          使用 Docker 部署

          1. 构建 Docker 镜像

            docker build -t deepseek-telegram-bot .

          2. 运行容器

            docker run -d -e TELEGRAM_BOT_TOKEN="telegram-bot-token" -e DEEPSEEK_TOKEN="deepseek-auth-token" --name my-telegram-bot deepseek-telegram-bot

          💡 贡献

          欢迎提交 issue 和 pull request 以改进本项目!🚀

          📜 许可证

          MIT License © 2025 Jack Yin

          瀏覽 18
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日本黄色免费视频 | 国产精品久久久久久久久AV竹菊 | 五月天丁香色婷婷 | 欧美操逼电影免费 | 9·1樱桃免费观看网站 |