feat: Implement Telegram bot with Claude authentication, mail service, and identity spoofing, refactoring core logic into new modules.

This commit is contained in:
2026-02-12 22:16:17 +08:00
parent 02d70ac3cd
commit ad7b6196dc
14 changed files with 1577 additions and 470 deletions

33
config.toml.example Normal file
View File

@@ -0,0 +1,33 @@
# ============================================================
# autoClaude 配置文件模板
# 复制本文件为 config.toml 并填入实际值
# ============================================================
# --- Claude ---
[claude]
url = "https://claude.ai/api/auth/send_magic_link"
# --- Stripe ---
[stripe]
pk = "pk_live_51MExQ9BjIQrRQnuxA9s9ahUkfIUHPoc3NFNidarWIUhEpwuc1bdjSJU9medEpVjoP4kTUrV2G8QWdxi9GjRJMUri005KO5xdyD"
product_id = "prod_TXU4hGh2EDxASl"
# --- Telegram Bot ---
[telegram]
bot_token = "your_bot_token_here" # @BotFather 获取
allowed_users = [] # 允许使用的用户ID列表空=不限制)
# --- 邮箱系统轮询使用API 接口相同)---
# 可添加多个 [[mail]] 块
[[mail]]
base_url = "https://mail.example.com/"
admin_email = "admin@example.com"
admin_pass = "your_password"
domains = ["example.com"]
# [[mail]]
# base_url = "https://mail2.example.com/"
# admin_email = "admin@mail2.example.com"
# admin_pass = "pass2"
# domains = ["domain2.com", "domain3.com"]