feat: add Telegram bot for manual trade commands
- Added telegram_command_bot.py with slash commands (/buySOL, /sellBTC, etc) - Docker compose setup with DNS configuration - Sends trades as plain text to n8n webhook (same format as TradingView) - Improved Telegram success message formatting - Only responds to authorized chat ID (579304651) - Commands: /buySOL, /sellSOL, /buyBTC, /sellBTC, /buyETH, /sellETH
This commit is contained in:
22
docker-compose.telegram-bot.yml
Normal file
22
docker-compose.telegram-bot.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
version: '3.3'
|
||||
|
||||
services:
|
||||
telegram-trade-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.telegram-bot
|
||||
container_name: telegram-trade-bot
|
||||
restart: unless-stopped
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
environment:
|
||||
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
|
||||
- N8N_WEBHOOK_URL=${N8N_WEBHOOK_URL}
|
||||
- TELEGRAM_CHAT_ID=579304651
|
||||
networks:
|
||||
- traderv4_trading-net
|
||||
|
||||
networks:
|
||||
traderv4_trading-net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user