Skip to content

Claude/telegram UI app qqyz s#4

Open
Gptmod666 wants to merge 2 commits intoMaxIsOntoSomething:mainfrom
Gptmod666:claude/telegram-ui-app-qqyzS
Open

Claude/telegram UI app qqyz s#4
Gptmod666 wants to merge 2 commits intoMaxIsOntoSomething:mainfrom
Gptmod666:claude/telegram-ui-app-qqyzS

Conversation

@Gptmod666
Copy link
Copy Markdown

No description provided.

claude added 2 commits April 21, 2026 12:30
- Replace static text commands with a full inline-keyboard menu system
- /start and /menu now show a dashboard with clickable buttons
- Added screens: Positions (with per-position Close buttons), Orders,
  PnL, Status, Target Wallet, Settings
- Settings menu allows adjusting leverage ratio, max trades, blocked
  assets, and toggling simulation/live mode — all from Telegram
- Added text-input flow for adding blocked assets inline
- Fixed async bug: get_orders() and get_positions() were sync but
  awaited in bot.py
- Added new main.py callbacks: get_target_state, close_position_by_symbol,
  refresh_target_state, update_setting
- All navigation uses edit_message_text for an in-place "app" feel
- BadRequest "message not modified" errors handled silently

https://claude.ai/code/session_018SJfStUhqXnhjijw7X172C
- FastAPI server (src/webapp/server.py) exposes REST API consumed by
  the Mini App frontend; validates Telegram WebApp initData signatures
- Frontend (src/webapp/static/) — single-page HTML/CSS/JS app with:
    - Dashboard: balance, PnL, positions count, target wallet stats
    - Positions screen: live position cards with Close buttons
    - Orders screen: open order cards
    - Settings screen: leverage ±, max trades ±, blocked-asset chips,
      sim/live mode toggle
    - Auto-refresh every 30 s, toast notifications, Telegram haptics
- Bot: /app command opens the Mini App via WebAppInfo button
- Settings: WEBAPP_URL and WEBAPP_PORT env vars
- Docker: port 8080 exposed for nginx proxy
- nginx/hyperliquid.conf: ready-to-use nginx+Let's Encrypt template

Setup on VPS:
  1. Add WEBAPP_URL=https://trading.yourdomain.com to .env
  2. Copy nginx/hyperliquid.conf, replace domain, certbot --nginx -d ...
  3. docker-compose up -d
  4. /app in Telegram to open the dashboard

https://claude.ai/code/session_018SJfStUhqXnhjijw7X172C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants