Spaces:
Sleeping
Sleeping
Update main.py
Browse files30 unmodified lines31323334353637383940414243444546474830 unmodified lines#await client.get(f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}")return {"response": "ok"}@app.post("/TEST")def test(data: dict):url = "http://api.telegram.org/bot6770617809:AAEhytQUOl3uZOFINVE7-o0KkIoAz8perGU/sendMessage?chat_id=1738997897&text=Come_Stai_Vez"try:response = requests.get(url)response.raise_for_status() # Controlla se la richiesta ha avuto successoprint(response.json()) # Stampa la risposta JSONexcept requests.exceptions.RequestException as e:print(f"Errore nella richiesta: {e}")return {"response": "TEST"}@app.get("/")def read_general():return {"response": "Started"}30 unmodified lines31323334353630 unmodified lines#await client.get(f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}")return {"response": "ok"}@app.get("/")def read_general():return {"response": "Started"}
main.py-12