mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-12-27 11:49:04 +00:00
🐛 Fix edit normal message media in WishWaitingListPlugin
This commit is contained in:
parent
700ab47bee
commit
b7ea2cb808
@ -226,10 +226,11 @@ class WishWaitingListPlugin(Plugin):
|
|||||||
user_id = user.id
|
user_id = user.id
|
||||||
|
|
||||||
image = await self.render(user_id, is_avatar)
|
image = await self.render(user_id, is_avatar)
|
||||||
await image.edit_inline_media(
|
reply_markup = await self.get_wish_waiting_list_button(user_id, is_avatar)
|
||||||
callback_query,
|
if callback_query.message:
|
||||||
reply_markup=await self.get_wish_waiting_list_button(user_id, is_avatar),
|
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]]:
|
async def get_inline_use_data(self) -> List[Optional[IInlineUseData]]:
|
||||||
types = {"角色": "avatar", "武器": "weapon"}
|
types = {"角色": "avatar", "武器": "weapon"}
|
||||||
|
Loading…
Reference in New Issue
Block a user