Claude/telegram UI app qqyz s#4
Open
Gptmod666 wants to merge 2 commits intoMaxIsOntoSomething:mainfrom
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.