bot was blocked by the user aiogram. Нагуглил что можно использовать BotBlocked в aiogram, но что-то не срослось с ним. Наткнулся на ещё одну ошибку inconsistent use of tabs and spaces in indentationasync def on_startup(dispatcher):
cursor.execute('SELECT user_id FROM test')
arr = cursor.fetchall()
for user_id in arr:
await bot.send_message(chat_id=user_id[0], text="Бот запущен!")
await asyncio.sleep(1)inconsistent use of tabs and spaces in indentation сообщает о том, что вы:Как тут грамматно расположить try except Botblocked pass?
try:
await bot.send_message(chat_id=user_id[0], text="Бот запущен!")
except Botblocked:
await asyncio.sleep(1)
await on_startup(dispatcher)