Skip to content

Commit

Permalink
add feedback when image generation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
yuerbujin committed Nov 24, 2023
1 parent f6719f8 commit 9959af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def image(update, context):
messageid = ''
config.API = ''
result += f"`出错啦!{e}`"
await context.bot.edit_message_text(chat_id=update.message.chat_id, message_id=messageid, text="当前语言未能成功生成图片😣换句话试试吧~", parse_mode='MarkdownV2', disable_web_page_preview=True)
await context.bot.edit_message_text(chat_id=update.message.chat_id, message_id=messageid, text="当前prompt未能成功生成图片😣换句话试试吧~", parse_mode='MarkdownV2', disable_web_page_preview=True)
print(result)

import time
Expand Down

0 comments on commit 9959af9

Please sign in to comment.