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:
12
Dockerfile.telegram-bot
Normal file
12
Dockerfile.telegram-bot
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir python-telegram-bot==20.7 requests
|
||||
|
||||
# Copy bot script
|
||||
COPY telegram_command_bot.py .
|
||||
|
||||
# Run bot
|
||||
CMD ["python3", "telegram_command_bot.py"]
|
||||
Reference in New Issue
Block a user