Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
18
telegram-web/README.md
Normal file
18
telegram-web/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Telegram Web 集成方案
|
||||
|
||||
## 方案选择
|
||||
|
||||
### 1. Telegram Web K (推荐)
|
||||
- 官方开源版本:https://github.com/morethanwords/tweb
|
||||
- 完整功能,可自定义
|
||||
- 基于现代技术栈
|
||||
|
||||
### 2. Telegram Web A
|
||||
- 官方版本:https://web.telegram.org
|
||||
- 可通过iframe嵌入
|
||||
|
||||
### 3. 基于gramJS的完整实现
|
||||
- 使用现有的gramJS库
|
||||
- 完全自定义UI和功能
|
||||
|
||||
## 实现步骤
|
||||
39
telegram-web/setup.sh
Normal file
39
telegram-web/setup.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "=== 设置 Telegram Web K ==="
|
||||
|
||||
# 检查是否已经克隆
|
||||
if [ ! -d "tweb" ]; then
|
||||
echo "1. 克隆 Telegram Web K..."
|
||||
git clone https://github.com/morethanwords/tweb.git
|
||||
cd tweb
|
||||
else
|
||||
echo "1. 更新 Telegram Web K..."
|
||||
cd tweb
|
||||
git pull
|
||||
fi
|
||||
|
||||
echo "2. 安装依赖..."
|
||||
npm install
|
||||
|
||||
echo "3. 配置环境..."
|
||||
# 创建自定义配置
|
||||
cat > .env << EOF
|
||||
# API配置
|
||||
VITE_TELEGRAM_API_ID=2040
|
||||
VITE_TELEGRAM_API_HASH=b18441a1ff607e10a989891a5462e627
|
||||
VITE_TELEGRAM_API_TEST=false
|
||||
|
||||
# 开发服务器
|
||||
VITE_DEV_SERVER_PORT=8889
|
||||
EOF
|
||||
|
||||
echo "4. 构建项目..."
|
||||
npm run build
|
||||
|
||||
echo "5. 完成!"
|
||||
echo ""
|
||||
echo "使用方法:"
|
||||
echo "- 开发模式: npm run dev"
|
||||
echo "- 生产构建: npm run build"
|
||||
echo "- 访问地址: http://localhost:8889"
|
||||
Reference in New Issue
Block a user