aiogram/aiogram/__init__.py
Alex Root Junior 4008a3114d
Upgrade architecture + 5.0 Bot API (#469)
Upgrade architecture + 5.0 Bot API (#469)
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00

31 lines
599 B
Python

from .client import session
from .client.bot import Bot
from .dispatcher import filters, handler
from .dispatcher.dispatcher import Dispatcher
from .dispatcher.middlewares.base import BaseMiddleware
from .dispatcher.router import Router
try:
import uvloop as _uvloop
_uvloop.install()
except ImportError: # pragma: no cover
_uvloop = None
__all__ = (
"__api_version__",
"__version__",
"types",
"methods",
"Bot",
"session",
"Dispatcher",
"Router",
"BaseMiddleware",
"filters",
"handler",
)
__version__ = "3.0.0a6"
__api_version__ = "5.0"