fix prompting

This commit is contained in:
Owl 2025-03-15 10:28:58 +07:00
parent 05baa4a473
commit 3239288f24

View file

@ -61,10 +61,15 @@ async def ws_task():
bot = telegram.Bot(TOKEN) bot = telegram.Bot(TOKEN)
async with bot: async with bot:
await bot.send_message(
chat_id=chat_id,
text=str(message)
)
await bot.send_document( await bot.send_document(
chat_id=chat_id, chat_id=chat_id,
document=image_bytes, document=image_bytes,
caption=str(message) filename=prompt["image_filename"],
) )
del scheduled_prompts[prompt_id] 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): async def gen_image(update: Update, context: ContextTypes.DEFAULT_TYPE):
query = update.message.text query = update.message.text
if query.startswith("prompting list models"): if query.startswith("prompting list models"):