Skip to content

Commit

Permalink
Merge pull request #24 from yuerbujin/main
Browse files Browse the repository at this point in the history
Add feedback for when image generation fails
  • Loading branch information
yym68686 authored Nov 25, 2023
2 parents 03eca2f + ce24451 commit c7f2607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +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="当前prompt未能成功生成图片😣换句话试试吧~", parse_mode='MarkdownV2', disable_web_page_preview=True)
print(result)

import time
Expand Down

0 comments on commit c7f2607

Please sign in to comment.