diff --git a/config.py b/config.py index af7812a..8ef09a5 100644 --- a/config.py +++ b/config.py @@ -10,6 +10,8 @@ whitelisted = [ 'buy alert', 'sell alert' ] +sec_code = '' + # Telegram Settings send_telegram_alerts = False tg_token = '' # Bot token. Get it from @Botfather diff --git a/main.py b/main.py index 91cf928..3f8d303 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ def webhook(): if request.method == 'POST': data = request.get_data(as_text=True) for whitelisted in config.whitelisted: - if whitelisted.lower() in data.lower(): + if whitelisted.lower() in data.lower() and config.sec_code in data: print('[✓]', timestamp, 'Alert Received & Sent!\n>', data) send_alert(data) return 'Sent alert', 200