Example #1
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    redis.setup(runner)
    runner.on_startup(on_startup_webhook, webhook=True, polling=False)
    if config.SUPERUSER_STARTUP_NOTIFIER:
        runner.on_startup(on_startup_notify)
Example #2
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    # apscheduller.setup(runner)
    # healthcheck.setup(runner)
    # runner.on_startup(on_startup_polling, webhook=False, polling=True)
    runner.start_polling(dp)
Example #3
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    join_list.setup(runner)
    apscheduller.setup(runner)
    healthcheck.setup(runner)
    runner.on_startup(on_startup_webhook, webhook=True, polling=False)
    if config.SUPERUSER_STARTUP_NOTIFIER:
        runner.on_startup(on_startup_notify)
Example #4
0
def setup():
    from app.models import db
    from app import middlewares
    from app import filters

    db.setup(runner)
    middlewares.setup(dp)
    filters.setup(dp)

    import app.handlers
Example #5
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    runner.start_polling(dp)
Example #6
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    runner.on_startup(on_startup_webhook, webhook=True, polling=False)
    runner.on_startup(on_startup_notify)
Example #7
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    apscheduler.setup(runner)