for items in items_instagram:
for title in items:
for description in items:
for price in items:
for id_id in items:
await call.message.answer(caption.format(title=title, description=description,
price=price), reply_markup=keyboard(item_id=id_id))</spoiler>
{'название товара': {
'title': 'title',
'description': 'description',
'price': 'price',
'id_id': 'id_id'}
}
@dp.message_handler()
async def admin_star(message: Message):
await message.reply("Hello, user!")
keyboard = types.ReplyKeyboardMarkup()
keyboard.add('Старт эхо')
await message.answer("Стартуем эхо?", reply_markup=keyboard)
if message.text == 'Старт эхо':
await EchoState.echo.set()
@dp.message_handler(state=EchoState.echo)
async def bo_echo(message: types.Message, state: FSMContext):
text = [
"Эхо без состояния1111.",
"Сообщение:",
message.text
]
await message.answer('\n'.join(text))
keyboard = types.ReplyKeyboardMarkup()
keyboard.add('Стоп эхо')
await message.answer("Стоп эхо?", reply_markup=keyboard)
if message.text == 'Стоп эхо':
await state.finish()
import random
num_list=[]
while len(num_list)<10:
num=random.randint(100000000,999999999)
if not num in num_list:
num_list.append(num)
print(num_list)