Skip to content

Commit

Permalink
Merge pull request #31 from HCPTangHY/main
Browse files Browse the repository at this point in the history
修复get_history_messages API不能正常工作的BUG
  • Loading branch information
RF-Tar-Railt committed Oct 31, 2023
2 parents 642254e + 8b596f0 commit 728860e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nonebot/adapters/red/bot.py
Expand Up @@ -442,23 +442,23 @@ async def get_history_messages(
self,
chat_type: ChatType,
target: Union[int, str],
offset: int = 0,
offset_msg_id: str,
count: int = 100,
):
"""拉取历史消息
参数:
chat_type: 聊天类型,分为好友与群组
target: 目标 id
offset: 从最近一条消息算起,选择从第几条消息开始拉取
offset_msg_id: 从哪一条消息开始拉去,使用msgId
count: 一次拉取多少消息
"""
peer = str(target)
return await self.call_api(
"get_history_messages",
chat_type=chat_type,
target=peer,
offset=offset,
offset_msg_id=offset_msg_id,
count=count,
)

Expand Down

0 comments on commit 728860e

Please sign in to comment.