diff --git a/plugins/zzz/signal_waiting_list.py b/plugins/zzz/signal_waiting_list.py index 062d8d0..7763834 100644 --- a/plugins/zzz/signal_waiting_list.py +++ b/plugins/zzz/signal_waiting_list.py @@ -228,10 +228,11 @@ class WishWaitingListPlugin(Plugin): user_id = user.id image = await self.render(user_id, is_avatar) - await image.edit_inline_media( - callback_query, - reply_markup=await self.get_wish_waiting_list_button(user_id, is_avatar), - ) + reply_markup = await self.get_wish_waiting_list_button(user_id, is_avatar) + if callback_query.message: + await image.edit_media(callback_query.message, reply_markup=reply_markup) + else: + await image.edit_inline_media(callback_query, reply_markup=reply_markup) async def get_inline_use_data(self) -> List[Optional[IInlineUseData]]: types = {"角色": "avatar", "武器": "weapon"}