MatteoScript commited on
Commit
25a946d
·
verified ·
1 Parent(s): 662bd24

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -19,7 +19,7 @@ app.add_middleware(
19
  @app.post("/")
20
  async def webhook(req: Request):
21
  print('a')
22
- data = await req()
23
  print(data)
24
  chat_id = data['message']['chat']['id']
25
  text = data['message']['text']
 
19
  @app.post("/")
20
  async def webhook(req: Request):
21
  print('a')
22
+ data = await req.json()
23
  print(data)
24
  chat_id = data['message']['chat']['id']
25
  text = data['message']['text']