Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2024
1 parent 2826a5f commit a22356b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/nonebot_plugin_alconna/uniseg/adapters/qq/exporter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pathlib import Path
from dataclasses import dataclass
from nonebot.adapters.qq.models import PostC2CMessagesReturn, PostGroupMessagesReturn, QQMessage
from typing_extensions import override
from typing import TYPE_CHECKING, Any, Union

Expand All @@ -11,6 +10,7 @@
from nonebot.adapters.qq.message import Message, MessageSegment
from nonebot.adapters.qq.models.common import Button as ButtonModel
from nonebot.adapters.qq.models.guild import Message as GuildMessage
from nonebot.adapters.qq.models import PostC2CMessagesReturn, PostGroupMessagesReturn
from nonebot.adapters.qq.models.common import Permission, RenderData, InlineKeyboard, MessageKeyboard, InlineKeyboardRow
from nonebot.adapters.qq.event import (
ForumEvent,
Expand Down Expand Up @@ -422,20 +422,19 @@ async def recall(self, mid: Any, bot: Bot, context: Union[Target, Event]):
message_id=mid.id,
)
elif isinstance(context, GroupAtMessageCreateEvent):
if isinstance(mid,PostGroupMessagesReturn):
if isinstance(mid, PostGroupMessagesReturn):

await bot.delete_group_message(
group_openid=context.group_openid,
message_id=mid.id,#type: ignore
message_id=mid.id, # type: ignore
)
elif isinstance(context, C2CMessageCreateEvent):
if isinstance(mid, PostC2CMessagesReturn):
await bot.delete_c2c_message(
openid=context.author.id,
message_id=mid.id,#type: ignore
message_id=mid.id, # type: ignore
)



return

def get_reply(self, mid: Any):
Expand Down

0 comments on commit a22356b

Please sign in to comment.