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 ffef73b commit f6719f8
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="当前语言未能成功生成图片😣换句话试试吧~", parse_mode='MarkdownV2', disable_web_page_preview=True)
print(result)

import time
Expand Down

0 comments on commit f6719f8

Please sign in to comment.