Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -31,6 +31,11 @@ def webhook(data: dict):
|
|
31 |
#await client.get(f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}")
|
32 |
return {"response": "ok"}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
@app.get("/")
|
36 |
def read_general():
|
|
|
31 |
#await client.get(f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}")
|
32 |
return {"response": "ok"}
|
33 |
|
34 |
+
@app.post("/TEST")
|
35 |
+
def test(data: dict):
|
36 |
+
requests.get("http://api.telegram.org/bot6770617809:AAEhytQUOl3uZOFINVE7-o0KkIoAz8perGU/sendMessage?chat_id=1738997897&text=Come_Stai_Vez")
|
37 |
+
return {"response": "TEST"}
|
38 |
+
|
39 |
|
40 |
@app.get("/")
|
41 |
def read_general():
|