- 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
25 lines
859 B
Bash
Executable File
25 lines
859 B
Bash
Executable File
#!/bin/bash
|
|
# One-time setup to get your Telegram Bot Token
|
|
# Run this and follow the instructions
|
|
|
|
echo "🤖 Telegram Bot Setup Instructions"
|
|
echo "===================================="
|
|
echo ""
|
|
echo "1. Open Telegram on your phone"
|
|
echo "2. Search for '@BotFather'"
|
|
echo "3. Start a chat with BotFather"
|
|
echo "4. Send this message: /newbot"
|
|
echo "5. BotFather will ask for a name - choose anything like 'My Trading Bot'"
|
|
echo "6. BotFather will ask for a username - must end in 'bot', like 'mytrading_bot'"
|
|
echo "7. BotFather will give you a TOKEN that looks like:"
|
|
echo " 123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
|
|
echo ""
|
|
echo "8. Copy that token and run:"
|
|
echo " nano .env.telegram-bot"
|
|
echo ""
|
|
echo "9. Replace 'your_bot_token_here' with your actual token"
|
|
echo ""
|
|
echo "10. Save (Ctrl+O, Enter, Ctrl+X)"
|
|
echo ""
|
|
echo "Then run: ./setup_telegram_bot.sh"
|