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