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

Open
mygo-kyx wants to merge 13 commits from mygo-kyx/autoClaude-TGbot:main into Feature-FromFork-Kunkun
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 6dc8964700 - Show all commits

View File

@@ -8,7 +8,8 @@ import json
import threading import threading
from pathlib import Path from pathlib import Path
_PERM_FILE = Path(__file__).parent / "permissions.json" _PROJECT_ROOT = Path(__file__).parent.parent
_PERM_FILE = _PROJECT_ROOT / "permissions.json"
_lock = threading.Lock() _lock = threading.Lock()
# 所有可用命令列表(用于验证输入) # 所有可用命令列表(用于验证输入)

View File

@@ -18,7 +18,8 @@ import requests as std_requests
# --- 配置常量 --- # --- 配置常量 ---
_PROXY_FILE = Path(__file__).parent / "proxy.txt" _PROJECT_ROOT = Path(__file__).parent.parent
_PROXY_FILE = _PROJECT_ROOT / "proxy.txt"
_TEST_URL = "https://claude.ai" # 测试目标 _TEST_URL = "https://claude.ai" # 测试目标
_TEST_TIMEOUT = 10 # 测试超时秒数 _TEST_TIMEOUT = 10 # 测试超时秒数
_INITIAL_PRIORITY = 100 # 初始优先级 _INITIAL_PRIORITY = 100 # 初始优先级