Skip to content

Commit

Permalink
🐛 fix forward send in onebot.v11
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Aug 12, 2024
1 parent 804fd81 commit 3a46027
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pathlib import Path
from dataclasses import asdict
from typing import TYPE_CHECKING, Any, Union

from tarina import lang
Expand Down Expand Up @@ -143,13 +142,13 @@ async def send_to(self, target: Union[Target, Event], bot: Bot, message: Message
return await bot.call_api(
"send_private_forward_msg",
user_id=int(_target.id),
messages=[asdict(m) for m in msg],
messages=msg,
)
else:
return await bot.call_api(
"send_group_forward_msg",
group_id=int(_target.id),
messages=[asdict(m) for m in msg],
messages=msg,
)
if isinstance(target, Event):
return await bot.send(target, message, **kwargs) # type: ignore
Expand Down

0 comments on commit 3a46027

Please sign in to comment.