Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ token=os.getenv('BOT_TOKEN')
|
|
| 76 |
# await bot.delete_webhook()
|
| 77 |
|
| 78 |
|
| 79 |
-
|
| 80 |
# # app.mount("/static", StaticFiles(directory="static"), name="static")
|
| 81 |
# # templates = Jinja2Templates(directory="templates")
|
| 82 |
|
|
@@ -167,5 +167,9 @@ async def ask(message: Message, state: FSMContext):
|
|
| 167 |
async def main():
|
| 168 |
await dp.start_polling(bot)
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
if __name__ == "__main__":
|
| 171 |
asyncio.run(main())
|
|
|
|
| 76 |
# await bot.delete_webhook()
|
| 77 |
|
| 78 |
|
| 79 |
+
app = FastAPI()
|
| 80 |
# # app.mount("/static", StaticFiles(directory="static"), name="static")
|
| 81 |
# # templates = Jinja2Templates(directory="templates")
|
| 82 |
|
|
|
|
| 167 |
async def main():
|
| 168 |
await dp.start_polling(bot)
|
| 169 |
|
| 170 |
+
@app.get("/")
|
| 171 |
+
def greet_json():
|
| 172 |
+
return {"Hello2": "World!2"}
|
| 173 |
+
|
| 174 |
if __name__ == "__main__":
|
| 175 |
asyncio.run(main())
|