Spaces:
Sleeping
Sleeping
Update main.py
Browse files10 unmodified lines11121314141516171819192021222310 unmodified lines@app.post("/webhook/")async def webhook(req: Request): print('a') data = await req.json() data = await req.() print(data) chat_id = data['message']['chat']['id'] text = data['message']['text'] await client.get(f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}") return data return data
@app.get("/")def read_general(): return {"response": "Started"} main.py+6-2