@dp.message_handler(content_types=[types.ContentType.PHOTO, types.ContentType.VIDEO], state=CREATEPOSTFSM.Photo_state)
async def process_photos_step(message: Message, state: FSMContext):
photo_ids = []
for photo in message.photo:
photo_ids.append(photo.file_id)
print(photo.file_id)
print(photo_ids)
await state.update_data(Photo_state=photo_ids)
await CREATEPOSTFSM.Send_state.set()