This commit is contained in:
xds
2026-02-03 09:29:44 +03:00
parent 3497f963fb
commit aca94cbfde

View File

@@ -273,7 +273,7 @@ async def gen_mode_start(
data = await state.get_data()
try:
if GenType(data['type']) is GenType.IMAGE:
if GenType[data['type']] is GenType.IMAGE:
generated_files = await generate_image(
prompt=prompt,
media=media_ids, # Передаем список (пустой или с 1 фото)