wb-droid commited on
Commit
f7405c3
·
1 Parent(s): 3dbedbf
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ BASE_URL = f"https://api.telegram.org/bot{TOKEN}"
15
  CUSTOM_PATH = "/gradio"
16
  app = FastAPI()
17
 
18
- client = httpx.AsyncClient()
19
 
20
  @app.get("/")
21
  async def read_main():
@@ -39,7 +39,7 @@ async def webhook(req: Request):
39
 
40
  msg = f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}"
41
  print(msg)
42
- await client.get(msg)
43
 
44
  #response = requests.get(msg, verify=False)
45
  response = requests.get("https://git.io/JJkYN")
 
15
  CUSTOM_PATH = "/gradio"
16
  app = FastAPI()
17
 
18
+ #client = httpx.AsyncClient()
19
 
20
  @app.get("/")
21
  async def read_main():
 
39
 
40
  msg = f"{BASE_URL}/sendMessage?chat_id={chat_id}&text={text}"
41
  print(msg)
42
+ #await client.get(msg)
43
 
44
  #response = requests.get(msg, verify=False)
45
  response = requests.get("https://git.io/JJkYN")