Skip to content

Instantly share code, notes, and snippets.

@Glukhoff
Created October 21, 2022 10:36
Show Gist options
  • Save Glukhoff/7b4f920dd430358833792013cdfef726 to your computer and use it in GitHub Desktop.
Save Glukhoff/7b4f920dd430358833792013cdfef726 to your computer and use it in GitHub Desktop.
async def main():
config: Config = load_conf()
bot = Bot(token=config.telegram.token)
dp = Dispatcher()
dp.message.middleware(DataBaseMiddleware(config))
dp.include_router(start_commands.router)
dp.include_router(bot_join_in_group.router)
dp.include_router(blocking_voice_messages.router)
dp.include_router(adding_staff.router)
await dp.start_polling(bot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment