From 7b3fe6460beec1738ee6a470cce098e738b4d3d0 Mon Sep 17 00:00:00 2001 From: owl Date: Fri, 14 Mar 2025 16:33:35 +0700 Subject: [PATCH] fix prompting error handling --- tgbot/shit/prompting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbot/shit/prompting.py b/tgbot/shit/prompting.py index bd7e38a..c906f00 100644 --- a/tgbot/shit/prompting.py +++ b/tgbot/shit/prompting.py @@ -239,7 +239,7 @@ async def gen_image(update: Update, context: ContextTypes.DEFAULT_TYPE): result = await enqueue_prompt_t2i(args) - if result["error"] == 0: + if result["error"] == "OK": prompt_id = result['data']