Created
October 21, 2022 10:36
-
-
Save Glukhoff/7b4f920dd430358833792013cdfef726 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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