Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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
Ejemplo n.º 5
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    runner.start_polling(dp)
Ejemplo n.º 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)
Ejemplo n.º 7
0
def setup():
    logger.info("Configure executor...")
    db.setup(runner)
    apscheduler.setup(runner)