mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
* Rewrite filters * Update README.rst * Fixed tests * Small optimization of the Text filter (TY to @bomzheg) * Remove dataclass slots argument in due to the only Python 3.10 has an slots argument * Fixed mypy * Update tests * Disable Python 3.11 * Fixed #1013: Empty mention should be None instead of empty string. * Added #990 to the changelog * Added #942 to the changelog * Fixed coverage * Update poetry and dependencies * Fixed mypy * Remove deprecated code * Added more tests, update pyproject.toml * Partial update docs * Added initial Docs translation files * Added more changes * Added log message when connection is established in polling process * Fixed action * Disable lint for PyPy * Added changelog for docs translation
39 lines
822 B
Python
39 lines
822 B
Python
from aiogram.dispatcher.flags import FlagGenerator
|
|
|
|
from .client import session
|
|
from .client.bot import Bot
|
|
from .dispatcher.dispatcher import Dispatcher
|
|
from .dispatcher.middlewares.base import BaseMiddleware
|
|
from .dispatcher.router import Router
|
|
from .utils.magic_filter import MagicFilter
|
|
from .utils.text_decorations import html_decoration as html
|
|
from .utils.text_decorations import markdown_decoration as md
|
|
|
|
try:
|
|
import uvloop as _uvloop
|
|
|
|
_uvloop.install()
|
|
except ImportError: # pragma: no cover
|
|
pass
|
|
|
|
F = MagicFilter()
|
|
flags = FlagGenerator()
|
|
|
|
__all__ = (
|
|
"__api_version__",
|
|
"__version__",
|
|
"types",
|
|
"methods",
|
|
"Bot",
|
|
"session",
|
|
"Dispatcher",
|
|
"Router",
|
|
"BaseMiddleware",
|
|
"F",
|
|
"html",
|
|
"md",
|
|
"flags",
|
|
)
|
|
|
|
__version__ = "3.0.0b5"
|
|
__api_version__ = "6.2"
|