From 27a8e89d9911aee0912345f6abf90cdd21354098 Mon Sep 17 00:00:00 2001 From: jkarage Date: Wed, 18 Oct 2023 12:55:22 +0300 Subject: [PATCH] Updated the handler --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 2fb270c..15a4da7 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,7 @@ import uvicorn from sarufi import Sarufi from dataclasses import dataclass +from mangum import Mangum from telegram import ( Update, @@ -29,6 +30,8 @@ app = FastAPI() +handler = Mangum(app) + load_dotenv() # Set up Sarufi and get bot's name