Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -11,7 +11,7 @@ app = FastAPI()
|
|
| 11 |
@app.post("/webhook/")
|
| 12 |
async def webhook(req: Request):
|
| 13 |
print('a')
|
| 14 |
-
data = await req
|
| 15 |
print(data)
|
| 16 |
chat_id = data['message']['chat']['id']
|
| 17 |
text = data['message']['text']
|
|
|
|
| 11 |
@app.post("/webhook/")
|
| 12 |
async def webhook(req: Request):
|
| 13 |
print('a')
|
| 14 |
+
data = await req()
|
| 15 |
print(data)
|
| 16 |
chat_id = data['message']['chat']['id']
|
| 17 |
text = data['message']['text']
|