dynstat commited on
Commit
714b0b8
·
verified ·
1 Parent(s): 3756173

testing by removing ai stuffs

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from fastapi import FastAPI, Request, Response # Import FastAPI classes for creating the web app and handling requests/responses
2
- from async_tgvoicebot import handle_message # Import the asynchronous function to handle incoming Telegram messages
3
  import aiohttp # Import aiohttp for making asynchronous HTTP requests
4
  import os # Import os module to access environment variables
5
  import logging
@@ -34,7 +34,8 @@ async def webhook(request: Request):
34
  # Create an asynchronous HTTP session
35
  async with aiohttp.ClientSession() as session:
36
  # Call the handle_message function with the current session and the message part of the update
37
- await handle_message(session, update.get('message', {}))
 
38
  # Respond to Telegram that the update was received and processed successfully
39
  logger.info("Received webhook request")
40
  return {"status": "ok"}
 
1
  from fastapi import FastAPI, Request, Response # Import FastAPI classes for creating the web app and handling requests/responses
2
+ # from async_tgvoicebot import handle_message # Import the asynchronous function to handle incoming Telegram messages
3
  import aiohttp # Import aiohttp for making asynchronous HTTP requests
4
  import os # Import os module to access environment variables
5
  import logging
 
34
  # Create an asynchronous HTTP session
35
  async with aiohttp.ClientSession() as session:
36
  # Call the handle_message function with the current session and the message part of the update
37
+ # await handle_message(session, update.get('message', {}))
38
+ pass
39
  # Respond to Telegram that the update was received and processed successfully
40
  logger.info("Received webhook request")
41
  return {"status": "ok"}