Webhook runtime for aiogram
aiogram-webhook
aiogram-webhook
A compact webhook layer for aiogram applications. Register FastAPI or aiohttp endpoints, build public Telegram URLs, verify requests, and run single-bot or token-based multi-bot webhooks.

Minimal FastAPI setup
from aiogram import Bot, Dispatcher
from fastapi import FastAPI
from aiogram_webhook import FastAPIAdapter, SingleBotEngine
from aiogram_webhook.route import Route
dispatcher = Dispatcher()
bot = Bot("BOT_TOKEN")
engine = SingleBotEngine(
dispatcher,
bot,
web=FastAPIAdapter(),
route=Route(base_url="https://example.com", path="/webhook"),
)
app = FastAPI()
engine.register(app)
Call await engine.set_webhook() during application startup when your public HTTPS URL is ready.