这是一个使用 Python 和 Telegram Bot API 构建的聊天机器人,它利用了 Poe API 提供的 AI 模型进行纯文字对话。(暂不支持上传图片,文件)
克隆此仓库:
git clone https://github.com/Timmy-web/Poe-Telegram-Chatbot.git
cd Poe-Telegram-Chatbot
安装依赖:
pip install -r requirements.txt
设置环境变量:
export TELEGRAM_BOT_TOKEN="your_telegram_bot_token"
export POE_API_KEY="your_poe_api_key"
运行 bot:
python bot.py
运行 Docker 容器:
docker run -d --name poebot \
-e TELEGRAM_BOT_TOKEN="your_telegram_bot_token" \
-e POE_API_KEY="your_poe_api_key" \
ghcr.io/timmy-web/poe-bot
或者使用 docker-compose:
docker-compose up -d
注意将 your_telegram_bot_token 和 your_poe_api_key 替换为你自己的 Token 和 API 密钥。
/start
- 开始与机器人对话 /new
- 开始一个新的对话,清空上下文/gpt4
- 切换到 GPT-4 模型/claude3
- 切换到 Claude-3-Opus 模型直接在聊天界面输入问题,机器人就会自动回复。