🐛 Fix sticker cannot add.

This commit is contained in:
xtaodada 2022-01-29 22:45:39 +08:00
parent 4c0b7a0930
commit 53b65965b7
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736

View File

@ -364,8 +364,9 @@ async def single_sticker(animated, context, custom_emoji, emoji, message, pic_ro
await bot.send_read_acknowledge(conversation.chat_id)
await conversation.send_message(pack_name)
chat_response = await conversation.get_response()
while chat_response.text == "Whoa! That's probably enough stickers for one pack, give it a break. \
A pack can't have more than 120 stickers at the moment.":
while chat_response.text == "Whoa! That's probably enough stickers for one set, " \
"give it a break. " \
"A set can't have more than 120 stickers at the moment.":
pack += 1
# 指定贴纸包已满时直接报错