MatteoScript commited on
Commit
a3d807a
·
verified ·
1 Parent(s): 79f7735

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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']