Как спростить код в питоне?
Цикл так и напрашивается.
Еще и с таймером)))
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
from aiogram.types import InputFile

import os, time, asyncio

name=1
bot = Bot(token=os.getenv('TOKEN'))
dp = Dispatcher(bot)
place = xxx #(xxx - id)
local_time = 0.05
local_time = local_time * 60

@dp.message_handler(commands=['start'])
async def command_xxx(message : types.Message):
	name=1
	while name <= 1:
		filename = InputFile("D:/asd/%s.jpg" % name)
		filename_1 = InputFile("D:/asd/%s.jpg" % name)
await bot.send_message(message.from_user.id, 'Чего желаете?', reply_markup=admin_kb.button_case_admin)
	await message.delete()		caption = 'yyy' #(yyy - words)
		await bot.send_photo(place, photo=filename, caption=caption)
		await bot.send_document(place, document=filename_1)
		time.sleep(local_time)
		name = name + 1

executor.start_polling(dp, skip_updates=True)