Aiogram on Fastapi. Migrate from Aiohttp. Aiogram 3.

The goal: to make aiogram work in the fastapi by changing the code as little as possible when migrating from aiohttp. Also leave all routes running.

Bot init(small class for convenience)



 

Add routers as usually


Add webhook endpoint


Add webhook or longpolling in startup


Close bot session on shutdown


Sign in to leave a comment
Apple Store React native app publish and build