Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -14,9 +14,6 @@ app.add_middleware(
|
|
14 |
|
15 |
@app.post("/")
|
16 |
async def webhook(data: dict, request: Request):
|
17 |
-
print(request.client.base_url)
|
18 |
-
data['update_id'] = request.client.base_url
|
19 |
-
print(data)
|
20 |
headers = {
|
21 |
'Content-Type': 'application/json',
|
22 |
'Authorization': 'Bearer ' + os.getenv('tokenAPI')
|
|
|
14 |
|
15 |
@app.post("/")
|
16 |
async def webhook(data: dict, request: Request):
|
|
|
|
|
|
|
17 |
headers = {
|
18 |
'Content-Type': 'application/json',
|
19 |
'Authorization': 'Bearer ' + os.getenv('tokenAPI')
|