diff --git a/main.py b/main.py index 2a4a254..311a625 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ def main(): loop.run_until_complete(initialization()) loop.create_task(dp.start_polling()) - # loop.create_task(server_main().start()) + loop.create_task(server_main().start()) loop.run_forever() diff --git a/olgram/commands/bots.py b/olgram/commands/bots.py index 5a3f19d..9f2f5c6 100644 --- a/olgram/commands/bots.py +++ b/olgram/commands/bots.py @@ -99,7 +99,8 @@ async def bot_added(message: types.Message, state: FSMContext): return await on_unknown_error() user, _ = await User.get_or_create(telegram_id=message.from_user.id) - bot = Bot(token=Bot.encrypted_token(token), owner=user, name=test_bot_info.username, super_chat_id=message.from_user.id) + bot = Bot(token=Bot.encrypted_token(token), owner=user, name=test_bot_info.username, + super_chat_id=message.from_user.id) try: await bot.save() except IntegrityError: