fix prompting
This commit is contained in:
parent
05baa4a473
commit
3239288f24
1 changed files with 6 additions and 2 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue