Spaces:
Sleeping
Sleeping
Add some messages.
Browse files
app.py
CHANGED
|
@@ -33,6 +33,11 @@ async def webhook(req: Request):
|
|
| 33 |
|
| 34 |
return data
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
def flip_text(x):
|
| 37 |
return x[::-1]
|
| 38 |
|
|
|
|
| 33 |
|
| 34 |
return data
|
| 35 |
|
| 36 |
+
@app.get("/webhook")
|
| 37 |
+
async def webhook_get():
|
| 38 |
+
return {"message": "/webhook for Telegram webhook is running. It accepts POST request from Telegram server."}
|
| 39 |
+
|
| 40 |
+
|
| 41 |
def flip_text(x):
|
| 42 |
return x[::-1]
|
| 43 |
|