mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Allowed to more simply import base utils from aiogram
This commit is contained in:
parent
afbe7bb458
commit
b37763c23f
2 changed files with 28 additions and 1 deletions
|
|
@ -1,8 +1,16 @@
|
|||
import asyncio
|
||||
import os
|
||||
|
||||
from . import bot
|
||||
from . import contrib
|
||||
from . import dispatcher
|
||||
from . import types
|
||||
from . import utils
|
||||
from .bot import Bot
|
||||
from .dispatcher import Dispatcher
|
||||
from .dispatcher import filters
|
||||
from .dispatcher import middlewares
|
||||
from .utils import exceptions, executor, helper, markdown as md
|
||||
|
||||
try:
|
||||
import uvloop
|
||||
|
|
@ -12,5 +20,23 @@ else:
|
|||
if 'DISABLE_UVLOOP' not in os.environ:
|
||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
||||
|
||||
__all__ = [
|
||||
'Bot',
|
||||
'Dispatcher',
|
||||
'__api_version__',
|
||||
'__version__',
|
||||
'bot',
|
||||
'contrib',
|
||||
'dispatcher',
|
||||
'exceptions',
|
||||
'executor',
|
||||
'filters',
|
||||
'helper',
|
||||
'md',
|
||||
'middlewares',
|
||||
'types',
|
||||
'utils'
|
||||
]
|
||||
|
||||
__version__ = '2.0.dev1'
|
||||
__api_version__ = '3.6'
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@ from . import handler
|
|||
from . import middlewares
|
||||
from . import storage
|
||||
from . import webhook
|
||||
from .dispatcher import Dispatcher, dispatcher, FSMContext
|
||||
from .dispatcher import Dispatcher, dispatcher, FSMContext, DEFAULT_RATE_LIMIT
|
||||
|
||||
__all__ = [
|
||||
'DEFAULT_RATE_LIMIT',
|
||||
'Dispatcher',
|
||||
'dispatcher',
|
||||
'FSMContext',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue