🐛 修复 gacha 插件发送错误数据的问题

This commit is contained in:
洛水居室 2022-10-22 17:03:50 +08:00
parent 79ef5cd08d
commit f00c4c0f11
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -225,7 +225,7 @@ class Gacha(Plugin, BasePlugin):
"genshin/gacha/gacha.html", template_data, {"width": 1157, "height": 603}, False
)
reply_message = await message.reply_photo(png_data)
reply_message = await message.reply_photo(png_data.photo)
if filters.ChatType.GROUPS.filter(message):
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id, 300)
self._add_delete_message_job(context, message.chat_id, message.message_id, 300)