Commit Graph

206 Commits

Author SHA1 Message Date
手瓜一十雪
6cfe8ab88b fix: #1260 2025-09-29 16:39:37 +08:00
837951602
597763d09e 找不到类型时显式报错 (#1256) 2025-09-16 17:19:59 +08:00
手瓜一十雪
5892ddb6e5 Add quick_reply support to message parsing
Introduces the quick_reply boolean option to message history schema and message parsing logic. Updates relevant functions to handle quick_reply, allowing for conditional behavior during message reply and segment parsing.
2025-09-02 22:33:05 +08:00
手瓜一十雪
518a7c1906 Refactor packet client and update message history actions
Replaced LRUCache with Map for callback and event management in packet clients, and standardized callback hash usage. Updated GetFriendMsgHistory and GetGroupMsgHistory actions to use snake_case for payload keys. Modified OneBotMsgApi to support disabling URL retrieval for ptt elements via a new parameter.
2025-09-02 22:24:53 +08:00
手瓜一十雪
5b2ff5acd3 Add resource health management and enhance message parsing
Introduces a ResourceManager for health checking and retry logic in src/common/health.ts. Updates OneBot message parsing to support disabling URL fetching and multi-message parsing via new payload options. File, image, video, and ptt URL retrievals now use resource health management for improved reliability. Also refactors packet API to allow configurable timeout for FetchRkey.
#1220
2025-09-02 21:19:49 +08:00
手瓜一十雪
557dac4838 Add timeout parameter to file and packet API methods
Introduces an optional timeout parameter (defaulting to 20000ms) to various file and packet API methods for improved control over request duration. Updates all relevant method calls and internal usages to support the new timeout argument, including OneBot message API calls with a shorter timeout for file, video, and ptt URL retrieval.
2025-09-02 09:54:42 +08:00
子寻
730d7eea59 fix: /get_msg interface returns group type message with group_name. (#1205) 2025-08-23 11:38:24 +08:00
手瓜一十雪
d498513bda Refactor PacketApi status checks and fix typos
Replaced all usages of PacketApi.available with PacketApi.packetStatus for more accurate status checking. Fixed a typo in getFullQQVesion to getFullQQVersion. Updated plugin_onmessage to fetch and parse messages for a user. These changes improve reliability and consistency in API status handling.
2025-08-06 19:31:24 +08:00
手瓜一十雪
539e39a0a5 fix: remove debug 2025-05-26 11:51:25 +08:00
手瓜一十雪
a404247aa9 fix: #1040 2025-05-26 11:50:45 +08:00
手瓜一十雪
4615af9f95 fix: #996 2025-05-11 11:31:52 +08:00
手瓜一十雪
d704d8b7d0 fix: 增强 2025-05-07 22:26:25 +08:00
手瓜一十雪
1ef85d74ac fix 2025-05-07 22:03:00 +08:00
手瓜一十雪
0eb8516ca6 fix 2025-05-07 20:53:36 +08:00
手瓜一十雪
74547318e1 fix
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 20:51:28 +08:00
手瓜一十雪
567aae6cee feat: fileUrl Get 2025-05-07 18:10:49 +08:00
Clansty
f38f7f4b0c fix: at 变成负数 2025-05-07 03:46:17 +08:00
pk5ls20
af85545d1d fix: fxxking fake forward element
- close #972, #977, #666
2025-04-30 20:31:03 +08:00
Me0wo
77ba5a6445 fix: #970 2025-04-24 04:11:31 +08:00
手瓜一十雪
9a8d192089 feat: disband 2025-04-20 19:28:35 +08:00
手瓜一十雪
f315ab15e6 fix 2025-04-19 11:03:03 +08:00
手瓜一十雪
8a116d2d7b 迁移类型校验到zod 2025-04-13 20:05:11 +08:00
pk5ls20
a07d253ff5 chore: improve log output for protocol fetch with multiple messages 2025-04-04 01:59:31 +08:00
手瓜一十雪
7f98027abd fix: typo 2025-04-03 14:44:59 +08:00
手瓜一十雪
f4e3c460e0 fix 2025-04-02 21:40:10 +08:00
手瓜一十雪
34b3f92f74 feat: GroupMemberTitle 2025-04-02 21:30:25 +08:00
手瓜一十雪
bb4586a36b fix: 清理文件 2025-04-02 12:04:05 +08:00
手瓜一十雪
8e0ebe11e6 fix: #918 2025-04-02 11:51:51 +08:00
手瓜一十雪
ddf9898c37 feat: 文件清理quene 2025-04-01 20:22:46 +08:00
HDTianRu
caf71208e8 feat: 额外返回原msgSeq条目 2025-03-08 16:36:17 +08:00
手瓜一十雪
95be5c9839 fix: #837 2025-03-02 14:27:09 +08:00
手瓜一十雪
c1b925f354 fix: 837 2025-03-02 14:26:28 +08:00
手瓜一十雪
3a2677c356 docs: todo #819 2025-02-23 17:17:52 +08:00
手瓜一十雪
248840d1cd feat: 文件移除path字段增强部分能力 2025-02-18 16:55:43 +08:00
手瓜一十雪
07d687daba feat: get_private_file_url 2025-02-18 16:51:51 +08:00
手瓜一十雪
2cc754629d fix: 优化文件处理错误信息并简化下载逻辑 2025-02-14 17:41:25 +08:00
手瓜一十雪
1421599a91 fix: #783 2025-02-08 17:00:11 +08:00
pk5ls20
b758a06ceb fix: #721 2025-02-05 08:07:58 +08:00
手瓜一十雪
a956efa95d fix: reload and parse msg 2025-02-04 19:34:51 +08:00
手瓜一十雪
eebba05e51 fix: #757 2025-02-04 14:34:55 +08:00
手瓜一十雪
9115e26f8a fix: thumb残留 2025-02-03 14:09:51 +08:00
手瓜一十雪
f3bb8b3602 fix: 必须清理并回收 2025-02-03 11:40:58 +08:00
手瓜一十雪
70945cf2d8 style: 强类型大法 2025-02-02 23:22:21 +08:00
手瓜一十雪
76501bae34 style: lint 2025-02-02 20:17:28 +08:00
手瓜一十雪
fd61a06ede style: lint 2025-01-25 12:56:02 +08:00
手瓜一十雪
afc9c7ed8d fix: re at
b5a84c8819
2025-01-24 18:55:10 +08:00
Wesley F. Young
b5a84c8819 fix: convert signed atUin into unsigned int 2025-01-22 15:31:56 +08:00
Clansty
e38467b7b8 force resultId to string 2025-01-21 22:10:52 +08:00
Clansty
141ea410f3 为新的接龙表情提供 resultId 和 chainCount 返回 2025-01-21 22:02:35 +08:00
手瓜一十雪
07a51e8d75 fix: 进一步重构 2025-01-21 20:40:52 +08:00