Example #1
0
def setup():
    from app.utils import executor
    from app import middlewares
    middlewares.setup(dp)
    logger.info("Configure handlers...")
    # noinspection PyUnresolvedReferences
    import app.handlers
    executor.setup()
Example #2
0
def setup():
    from app import middlewares
    from app.utils import executor

    middlewares.setup(dp)
    executor.setup()

    logger.info("Configure handlers...")
    import app.handlers
Example #3
0
def setup():
    from app import middlewares
    from app.utils import executor

    middlewares.setup(dp)
    filters.setup(dp)
    executor.setup()

    logger.info("Register handlers...")
    # noinspection PyUnresolvedReferences
    import app.handlers
Example #4
0
def setup():
    from app import filters
    from app import middlewares
    from app.utils import executor
    logger.debug(f"As application dir using: {app_dir}")

    middlewares.setup(dp)
    filters.setup(dp)
    executor.setup()

    logger.info("Configure handlers...")
    # noinspection PyUnresolvedReferences
    import app.handlers