File size: 473 Bytes
51964ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import requests

NTFY_TOPIC = "forex_gnn_live_alerts" # Make sure this matches your app.py

try:
    requests.post(
        "https://ntfy.sh/",
        json={
            "topic": NTFY_TOPIC,
            "message": "Test Alert: The Bot is Connected! 🚀",
            "title": "System Check",
            "tags": ["white_check_mark"],
            "priority": "high"
        }
    )
    print("✅ Test Alert Sent!")
except Exception as e:
    print(f"❌ Error: {e}")test_