From 3239288f2426204d0309e001e589f1fbb62bbcdc Mon Sep 17 00:00:00 2001 From: owl Date: Sat, 15 Mar 2025 10:28:58 +0700 Subject: [PATCH] fix prompting --- tgbot/shit/prompting.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tgbot/shit/prompting.py b/tgbot/shit/prompting.py index fc495b5..09928c2 100644 --- a/tgbot/shit/prompting.py +++ b/tgbot/shit/prompting.py @@ -61,10 +61,15 @@ async def ws_task(): bot = telegram.Bot(TOKEN) async with bot: + await bot.send_message( + chat_id=chat_id, + text=str(message) + ) + await bot.send_document( chat_id=chat_id, document=image_bytes, - caption=str(message) + filename=prompt["image_filename"], ) del scheduled_prompts[prompt_id] @@ -240,7 +245,6 @@ def prompting_parse_args(args: str, parser: CustomArgParser): async def gen_image(update: Update, context: ContextTypes.DEFAULT_TYPE): - query = update.message.text if query.startswith("prompting list models"):