@rdjksp/node-napcat-ts 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/Interfaces.d.ts +2309 -0
- package/dist/Interfaces.js +1 -0
- package/dist/NCEventBus.d.ts +32 -0
- package/dist/NCEventBus.js +336 -0
- package/dist/NCWebsocketApi.d.ts +1793 -0
- package/dist/NCWebsocketApi.js +1011 -0
- package/dist/NCWebsocketBase.d.ts +58 -0
- package/dist/NCWebsocketBase.js +276 -0
- package/dist/Structs.d.ts +379 -0
- package/dist/Structs.js +230 -0
- package/dist/Utils.d.ts +18 -0
- package/dist/Utils.js +65 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/package.json +74 -0
|
@@ -0,0 +1,1793 @@
|
|
|
1
|
+
import type { WSSendParam } from './Interfaces.js';
|
|
2
|
+
import { NCWebsocketBase } from './NCWebsocketBase.js';
|
|
3
|
+
export declare class NCWebsocket extends NCWebsocketBase {
|
|
4
|
+
/**
|
|
5
|
+
* @onebot11
|
|
6
|
+
* 发送私聊消息
|
|
7
|
+
*/
|
|
8
|
+
send_private_msg(params: WSSendParam['send_private_msg']): Promise<{
|
|
9
|
+
message_id: number;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* @onebot11
|
|
13
|
+
* 发送群聊信息
|
|
14
|
+
*/
|
|
15
|
+
send_group_msg(params: WSSendParam['send_group_msg']): Promise<{
|
|
16
|
+
message_id: number;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* @onebot11
|
|
20
|
+
* 发送信息
|
|
21
|
+
*/
|
|
22
|
+
send_msg(params: WSSendParam['send_msg']): Promise<{
|
|
23
|
+
message_id: number;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* @onebot11
|
|
27
|
+
* 撤回信息
|
|
28
|
+
*/
|
|
29
|
+
delete_msg(params: WSSendParam['delete_msg']): Promise<null>;
|
|
30
|
+
/**
|
|
31
|
+
* @onebot11
|
|
32
|
+
* 获取信息
|
|
33
|
+
*/
|
|
34
|
+
get_msg(params: WSSendParam['get_msg']): Promise<({
|
|
35
|
+
message_type: "private";
|
|
36
|
+
sender: {
|
|
37
|
+
user_id: number;
|
|
38
|
+
nickname: string;
|
|
39
|
+
card: string;
|
|
40
|
+
};
|
|
41
|
+
sub_type: "friend";
|
|
42
|
+
} | {
|
|
43
|
+
message_type: "group";
|
|
44
|
+
group_id: number;
|
|
45
|
+
sender: {
|
|
46
|
+
user_id: number;
|
|
47
|
+
nickname: string;
|
|
48
|
+
card: string;
|
|
49
|
+
role: "owner" | "admin" | "member";
|
|
50
|
+
};
|
|
51
|
+
sub_type: "normal";
|
|
52
|
+
}) & {
|
|
53
|
+
self_id: number;
|
|
54
|
+
user_id: number;
|
|
55
|
+
time: number;
|
|
56
|
+
message_id: number;
|
|
57
|
+
message_seq: number;
|
|
58
|
+
real_id: number;
|
|
59
|
+
real_seq: string;
|
|
60
|
+
raw_message: string;
|
|
61
|
+
font: number;
|
|
62
|
+
post_type: "message" | "message_sent";
|
|
63
|
+
} & import("./Interfaces.js").MessageType>;
|
|
64
|
+
/**
|
|
65
|
+
* @onebot11
|
|
66
|
+
* 获取合并转发信息
|
|
67
|
+
*/
|
|
68
|
+
get_forward_msg(params: WSSendParam['get_forward_msg']): Promise<{
|
|
69
|
+
messages: import("./Interfaces.js").WSSendReturn["get_msg"][];
|
|
70
|
+
}>;
|
|
71
|
+
/**
|
|
72
|
+
* @onebot11
|
|
73
|
+
* 点赞
|
|
74
|
+
*/
|
|
75
|
+
send_like(params: WSSendParam['send_like']): Promise<null>;
|
|
76
|
+
/**
|
|
77
|
+
* @onebot11
|
|
78
|
+
* 群组踢人
|
|
79
|
+
*/
|
|
80
|
+
set_group_kick(params: WSSendParam['set_group_kick']): Promise<null>;
|
|
81
|
+
/**
|
|
82
|
+
* @onebot11
|
|
83
|
+
* 群组禁言
|
|
84
|
+
*/
|
|
85
|
+
set_group_ban(params: WSSendParam['set_group_ban']): Promise<null>;
|
|
86
|
+
/**
|
|
87
|
+
* @onebot11
|
|
88
|
+
* 群组匿名用户禁言
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* @onebot11
|
|
92
|
+
* 群组全员禁言
|
|
93
|
+
*/
|
|
94
|
+
set_group_whole_ban(params: WSSendParam['set_group_whole_ban']): Promise<null>;
|
|
95
|
+
/**
|
|
96
|
+
* @onebot11
|
|
97
|
+
* 群组设置管理员
|
|
98
|
+
*/
|
|
99
|
+
set_group_admin(params: WSSendParam['set_group_admin']): Promise<null>;
|
|
100
|
+
/**
|
|
101
|
+
* @onebot11
|
|
102
|
+
* 群组匿名
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* @onebot11
|
|
106
|
+
* 设置群名片
|
|
107
|
+
*/
|
|
108
|
+
set_group_card(params: WSSendParam['set_group_card']): Promise<null>;
|
|
109
|
+
/**
|
|
110
|
+
* @onebot11
|
|
111
|
+
* 设置群名
|
|
112
|
+
*/
|
|
113
|
+
set_group_name(params: WSSendParam['set_group_name']): Promise<null>;
|
|
114
|
+
/**
|
|
115
|
+
* @onebot11
|
|
116
|
+
* 退出群组
|
|
117
|
+
*/
|
|
118
|
+
set_group_leave(params: WSSendParam['set_group_leave']): Promise<null>;
|
|
119
|
+
/**
|
|
120
|
+
* @onebot11
|
|
121
|
+
* 设置群聊特殊头衔
|
|
122
|
+
*/
|
|
123
|
+
set_group_special_title(params: WSSendParam['set_group_special_title']): Promise<null>;
|
|
124
|
+
/**
|
|
125
|
+
* @onebot11
|
|
126
|
+
* 设置好友添加请求
|
|
127
|
+
*/
|
|
128
|
+
set_friend_add_request(params: WSSendParam['set_friend_add_request']): Promise<null>;
|
|
129
|
+
/**
|
|
130
|
+
* @onebot11
|
|
131
|
+
* 设置好友备注
|
|
132
|
+
*/
|
|
133
|
+
set_friend_remark(params: WSSendParam['set_friend_remark']): Promise<null>;
|
|
134
|
+
/**
|
|
135
|
+
* @onebot11
|
|
136
|
+
* 设置群组添加请求
|
|
137
|
+
*/
|
|
138
|
+
set_group_add_request(params: WSSendParam['set_group_add_request']): Promise<null>;
|
|
139
|
+
/**
|
|
140
|
+
* @onebot11
|
|
141
|
+
* 获取登录号信息
|
|
142
|
+
*/
|
|
143
|
+
get_login_info(): Promise<{
|
|
144
|
+
user_id: number;
|
|
145
|
+
nickname: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* @onebot11
|
|
149
|
+
* 获取非好友信息
|
|
150
|
+
*/
|
|
151
|
+
get_stranger_info(params: WSSendParam['get_stranger_info']): Promise<{
|
|
152
|
+
uid: string;
|
|
153
|
+
uin: string;
|
|
154
|
+
nick: string;
|
|
155
|
+
remark: string;
|
|
156
|
+
constellation: number;
|
|
157
|
+
shengXiao: number;
|
|
158
|
+
kBloodType: number;
|
|
159
|
+
homeTown: string;
|
|
160
|
+
makeFriendCareer: number;
|
|
161
|
+
pos: string;
|
|
162
|
+
college: string;
|
|
163
|
+
country: string;
|
|
164
|
+
province: string;
|
|
165
|
+
city: string;
|
|
166
|
+
postCode: string;
|
|
167
|
+
address: string;
|
|
168
|
+
regTime: number;
|
|
169
|
+
interest: string;
|
|
170
|
+
labels: string[];
|
|
171
|
+
qqLevel: number;
|
|
172
|
+
qid: string;
|
|
173
|
+
longNick: string;
|
|
174
|
+
birthday_year: number;
|
|
175
|
+
birthday_month: number;
|
|
176
|
+
birthday_day: number;
|
|
177
|
+
age: number;
|
|
178
|
+
sex: "male" | "female" | "unknown";
|
|
179
|
+
eMail: string;
|
|
180
|
+
phoneNum: string;
|
|
181
|
+
categoryId: number;
|
|
182
|
+
richTime: number;
|
|
183
|
+
richBuffer: {
|
|
184
|
+
[key: string]: number;
|
|
185
|
+
};
|
|
186
|
+
topTime: string;
|
|
187
|
+
isBlock: boolean;
|
|
188
|
+
isMsgDisturb: boolean;
|
|
189
|
+
isSpecialCareOpen: boolean;
|
|
190
|
+
isSpecialCareZone: boolean;
|
|
191
|
+
ringId: string;
|
|
192
|
+
isBlocked: boolean;
|
|
193
|
+
recommendImgFlag: number;
|
|
194
|
+
disableEmojiShortCuts: number;
|
|
195
|
+
qidianMasterFlag: number;
|
|
196
|
+
qidianCrewFlag: number;
|
|
197
|
+
qidianCrewFlag2: number;
|
|
198
|
+
isHideQQLevel: number;
|
|
199
|
+
isHidePrivilegeIcon: number;
|
|
200
|
+
status: number;
|
|
201
|
+
extStatus: number;
|
|
202
|
+
batteryStatus: number;
|
|
203
|
+
termType: number;
|
|
204
|
+
netType: number;
|
|
205
|
+
iconType: number;
|
|
206
|
+
customStatus: null;
|
|
207
|
+
setTime: string;
|
|
208
|
+
specialFlag: number;
|
|
209
|
+
abiFlag: number;
|
|
210
|
+
eNetworkType: number;
|
|
211
|
+
showName: string;
|
|
212
|
+
termDesc: string;
|
|
213
|
+
musicInfo: {
|
|
214
|
+
buf: {
|
|
215
|
+
[key: string]: number;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
extOnlineBusinessInfo: {
|
|
219
|
+
buf: {
|
|
220
|
+
[key: string]: number;
|
|
221
|
+
};
|
|
222
|
+
customStatus: null;
|
|
223
|
+
videoBizInfo: {
|
|
224
|
+
cid: string;
|
|
225
|
+
tvUrl: string;
|
|
226
|
+
synchType: string;
|
|
227
|
+
};
|
|
228
|
+
videoInfo: {
|
|
229
|
+
name: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
extBuffer: {
|
|
233
|
+
buf: {
|
|
234
|
+
[key: string]: number;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
user_id: number;
|
|
238
|
+
nickname: string;
|
|
239
|
+
long_nick: string;
|
|
240
|
+
reg_time: number;
|
|
241
|
+
is_vip: boolean;
|
|
242
|
+
is_years_vip: boolean;
|
|
243
|
+
vip_level: number;
|
|
244
|
+
login_days: number;
|
|
245
|
+
}>;
|
|
246
|
+
/**
|
|
247
|
+
* @onebot11
|
|
248
|
+
* 获取好友列表
|
|
249
|
+
*/
|
|
250
|
+
get_friend_list(): Promise<{
|
|
251
|
+
birthday_year: number;
|
|
252
|
+
birthday_month: number;
|
|
253
|
+
birthday_day: number;
|
|
254
|
+
user_id: number;
|
|
255
|
+
age: number;
|
|
256
|
+
phone_num: string;
|
|
257
|
+
email: string;
|
|
258
|
+
category_id: number;
|
|
259
|
+
nickname: string;
|
|
260
|
+
remark: string;
|
|
261
|
+
sex: "male" | "female" | "unknown";
|
|
262
|
+
level: number;
|
|
263
|
+
}[]>;
|
|
264
|
+
/**
|
|
265
|
+
* @onebot11
|
|
266
|
+
* 获取群信息
|
|
267
|
+
*/
|
|
268
|
+
get_group_info(params: WSSendParam['get_group_info']): Promise<{
|
|
269
|
+
group_all_shut: number;
|
|
270
|
+
group_remark: string;
|
|
271
|
+
group_id: number;
|
|
272
|
+
group_name: string;
|
|
273
|
+
member_count: number;
|
|
274
|
+
max_member_count: number;
|
|
275
|
+
}>;
|
|
276
|
+
/**
|
|
277
|
+
* @onebot11
|
|
278
|
+
* 获取群列表
|
|
279
|
+
*/
|
|
280
|
+
get_group_list(params?: WSSendParam['get_group_list']): Promise<{
|
|
281
|
+
group_all_shut: number;
|
|
282
|
+
group_remark: string;
|
|
283
|
+
group_id: number;
|
|
284
|
+
group_name: string;
|
|
285
|
+
member_count: number;
|
|
286
|
+
max_member_count: number;
|
|
287
|
+
}[]>;
|
|
288
|
+
/**
|
|
289
|
+
* @onebot11
|
|
290
|
+
* 获取群成员信息
|
|
291
|
+
*/
|
|
292
|
+
get_group_member_info(params: WSSendParam['get_group_member_info']): Promise<{
|
|
293
|
+
group_id: number;
|
|
294
|
+
user_id: number;
|
|
295
|
+
nickname: string;
|
|
296
|
+
card: string;
|
|
297
|
+
sex: "male" | "female" | "unknown";
|
|
298
|
+
age: number;
|
|
299
|
+
area: string;
|
|
300
|
+
level: string;
|
|
301
|
+
qq_level: number;
|
|
302
|
+
join_time: number;
|
|
303
|
+
last_sent_time: number;
|
|
304
|
+
title_expire_time: number;
|
|
305
|
+
unfriendly: boolean;
|
|
306
|
+
card_changeable: boolean;
|
|
307
|
+
is_robot: boolean;
|
|
308
|
+
shut_up_timestamp: number;
|
|
309
|
+
role: "owner" | "admin" | "member";
|
|
310
|
+
title: string;
|
|
311
|
+
}>;
|
|
312
|
+
/**
|
|
313
|
+
* @onebot11
|
|
314
|
+
* 获取群成员列表
|
|
315
|
+
*/
|
|
316
|
+
get_group_member_list(params: WSSendParam['get_group_member_list']): Promise<{
|
|
317
|
+
group_id: number;
|
|
318
|
+
user_id: number;
|
|
319
|
+
nickname: string;
|
|
320
|
+
card: string;
|
|
321
|
+
sex: "male" | "female" | "unknown";
|
|
322
|
+
age: number;
|
|
323
|
+
area: string;
|
|
324
|
+
level: string;
|
|
325
|
+
qq_level: number;
|
|
326
|
+
join_time: number;
|
|
327
|
+
last_sent_time: number;
|
|
328
|
+
title_expire_time: number;
|
|
329
|
+
unfriendly: boolean;
|
|
330
|
+
card_changeable: boolean;
|
|
331
|
+
is_robot: boolean;
|
|
332
|
+
shut_up_timestamp: number;
|
|
333
|
+
role: "owner" | "admin" | "member";
|
|
334
|
+
title: string;
|
|
335
|
+
}[]>;
|
|
336
|
+
/**
|
|
337
|
+
* @onebot11
|
|
338
|
+
* 获取群荣誉信息
|
|
339
|
+
*/
|
|
340
|
+
get_group_honor_info(params: WSSendParam['get_group_honor_info']): Promise<{
|
|
341
|
+
group_id: string;
|
|
342
|
+
current_talkative: {
|
|
343
|
+
user_id: number;
|
|
344
|
+
nickname: string;
|
|
345
|
+
avatar: string;
|
|
346
|
+
description: string;
|
|
347
|
+
};
|
|
348
|
+
talkative_list: {
|
|
349
|
+
user_id: number;
|
|
350
|
+
nickname: string;
|
|
351
|
+
avatar: string;
|
|
352
|
+
description: string;
|
|
353
|
+
}[];
|
|
354
|
+
performer_list: {
|
|
355
|
+
user_id: number;
|
|
356
|
+
nickname: string;
|
|
357
|
+
avatar: string;
|
|
358
|
+
description: string;
|
|
359
|
+
}[];
|
|
360
|
+
legend_list: {
|
|
361
|
+
user_id: number;
|
|
362
|
+
nickname: string;
|
|
363
|
+
avatar: string;
|
|
364
|
+
description: string;
|
|
365
|
+
}[];
|
|
366
|
+
emotion_list: {
|
|
367
|
+
user_id: number;
|
|
368
|
+
nickname: string;
|
|
369
|
+
avatar: string;
|
|
370
|
+
description: string;
|
|
371
|
+
}[];
|
|
372
|
+
strong_newbie_list: {
|
|
373
|
+
user_id: number;
|
|
374
|
+
nickname: string;
|
|
375
|
+
avatar: string;
|
|
376
|
+
description: string;
|
|
377
|
+
}[];
|
|
378
|
+
}>;
|
|
379
|
+
/**
|
|
380
|
+
* @onebot11
|
|
381
|
+
* 获取Cookies
|
|
382
|
+
*/
|
|
383
|
+
get_cookies(params: WSSendParam['get_cookies']): Promise<{
|
|
384
|
+
cookies: string;
|
|
385
|
+
bkn: string;
|
|
386
|
+
}>;
|
|
387
|
+
/**
|
|
388
|
+
* @onebot11
|
|
389
|
+
* 获取CsrfToken
|
|
390
|
+
*/
|
|
391
|
+
get_csrf_token(): Promise<{
|
|
392
|
+
token: number;
|
|
393
|
+
}>;
|
|
394
|
+
/**
|
|
395
|
+
* @onebot11
|
|
396
|
+
* 获取Credentials
|
|
397
|
+
*/
|
|
398
|
+
get_credentials(): Promise<{
|
|
399
|
+
cookies: string;
|
|
400
|
+
token: number;
|
|
401
|
+
}>;
|
|
402
|
+
/**
|
|
403
|
+
* @onebot11
|
|
404
|
+
* 获取语音
|
|
405
|
+
*/
|
|
406
|
+
get_record(params: WSSendParam['get_record']): Promise<{
|
|
407
|
+
file: string;
|
|
408
|
+
url: string;
|
|
409
|
+
file_size: string;
|
|
410
|
+
file_name: string;
|
|
411
|
+
}>;
|
|
412
|
+
/**
|
|
413
|
+
* @onebot11
|
|
414
|
+
* 获取图片
|
|
415
|
+
*/
|
|
416
|
+
get_image(params: WSSendParam['get_image']): Promise<{
|
|
417
|
+
file: string;
|
|
418
|
+
url: string;
|
|
419
|
+
file_size: string;
|
|
420
|
+
file_name: string;
|
|
421
|
+
}>;
|
|
422
|
+
/**
|
|
423
|
+
* @onebot11
|
|
424
|
+
* 能否发送图片
|
|
425
|
+
*/
|
|
426
|
+
can_send_image(): Promise<{
|
|
427
|
+
yes: true;
|
|
428
|
+
}>;
|
|
429
|
+
/**
|
|
430
|
+
* @onebot11
|
|
431
|
+
* 能否发送语音
|
|
432
|
+
*/
|
|
433
|
+
can_send_record(): Promise<{
|
|
434
|
+
yes: true;
|
|
435
|
+
}>;
|
|
436
|
+
/**
|
|
437
|
+
* @onebot11
|
|
438
|
+
* 获取运行状态
|
|
439
|
+
*/
|
|
440
|
+
get_status(): Promise<{
|
|
441
|
+
online: boolean;
|
|
442
|
+
good: true;
|
|
443
|
+
stat: {};
|
|
444
|
+
}>;
|
|
445
|
+
/**
|
|
446
|
+
* @onebot11
|
|
447
|
+
* 获取版本信息
|
|
448
|
+
*/
|
|
449
|
+
get_version_info(): Promise<{
|
|
450
|
+
app_name: "NapCat.Onebot";
|
|
451
|
+
protocol_version: "v11";
|
|
452
|
+
app_version: string;
|
|
453
|
+
}>;
|
|
454
|
+
/**
|
|
455
|
+
* @onebot11
|
|
456
|
+
* 重启
|
|
457
|
+
*/
|
|
458
|
+
/**
|
|
459
|
+
* @onebot11
|
|
460
|
+
* 清理缓存
|
|
461
|
+
*/
|
|
462
|
+
clean_cache(): Promise<null>;
|
|
463
|
+
/**
|
|
464
|
+
* @onebot11
|
|
465
|
+
* 退出机器人
|
|
466
|
+
*/
|
|
467
|
+
bot_exit(): Promise<null>;
|
|
468
|
+
/**
|
|
469
|
+
* @gocqhttp
|
|
470
|
+
* 设置QQ资料
|
|
471
|
+
*/
|
|
472
|
+
set_qq_profile(params: WSSendParam['set_qq_profile']): Promise<{
|
|
473
|
+
result: 0;
|
|
474
|
+
errMsg: string;
|
|
475
|
+
}>;
|
|
476
|
+
/**
|
|
477
|
+
* @gocqhttp
|
|
478
|
+
* 获取企点QQ资料
|
|
479
|
+
*/
|
|
480
|
+
/**
|
|
481
|
+
* @gocqhttp
|
|
482
|
+
* 获取型号列表
|
|
483
|
+
*/
|
|
484
|
+
_get_model_show(params: WSSendParam['_get_model_show']): Promise<{
|
|
485
|
+
variants: {
|
|
486
|
+
model_show: string;
|
|
487
|
+
need_pay: boolean;
|
|
488
|
+
};
|
|
489
|
+
}[]>;
|
|
490
|
+
/**
|
|
491
|
+
* @gocqhttp
|
|
492
|
+
* 设置型号
|
|
493
|
+
*/
|
|
494
|
+
/**
|
|
495
|
+
* @gocqhttp
|
|
496
|
+
* 获取登陆的客户端
|
|
497
|
+
*/
|
|
498
|
+
/**
|
|
499
|
+
* @gocqhttp
|
|
500
|
+
* 获取单向好友列表
|
|
501
|
+
*/
|
|
502
|
+
get_unidirectional_friend_list(): Promise<{
|
|
503
|
+
uin: number;
|
|
504
|
+
uid: string;
|
|
505
|
+
nick_name: string;
|
|
506
|
+
age: number;
|
|
507
|
+
source: string;
|
|
508
|
+
}[]>;
|
|
509
|
+
/**
|
|
510
|
+
* @gocqhttp
|
|
511
|
+
* 删除好友
|
|
512
|
+
*/
|
|
513
|
+
delete_friend(params: WSSendParam['delete_friend']): Promise<{
|
|
514
|
+
result: 0;
|
|
515
|
+
errMsg: string;
|
|
516
|
+
}>;
|
|
517
|
+
/**
|
|
518
|
+
* @gocqhttp
|
|
519
|
+
* 删除单向好友
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* @gocqhttp
|
|
523
|
+
* 标记消息已读
|
|
524
|
+
*/
|
|
525
|
+
mark_msg_as_read(params: WSSendParam['mark_msg_as_read']): Promise<null>;
|
|
526
|
+
/**
|
|
527
|
+
* @gocqhttp
|
|
528
|
+
* 发送群合并转发
|
|
529
|
+
*/
|
|
530
|
+
send_group_forward_msg(params: WSSendParam['send_group_forward_msg']): Promise<{
|
|
531
|
+
message_id: number;
|
|
532
|
+
}>;
|
|
533
|
+
/**
|
|
534
|
+
* @gocqhttp
|
|
535
|
+
* 发送私聊合并转发
|
|
536
|
+
*/
|
|
537
|
+
send_private_forward_msg(params: WSSendParam['send_private_forward_msg']): Promise<{
|
|
538
|
+
message_id: number;
|
|
539
|
+
}>;
|
|
540
|
+
/**
|
|
541
|
+
* @gocqhttp
|
|
542
|
+
* 获取群聊历史消息
|
|
543
|
+
*/
|
|
544
|
+
get_group_msg_history(params: WSSendParam['get_group_msg_history']): Promise<{
|
|
545
|
+
messages: import("./Interfaces.js").WSSendReturn["get_msg"][];
|
|
546
|
+
}>;
|
|
547
|
+
/**
|
|
548
|
+
* @gocqhttp
|
|
549
|
+
* OCR图片
|
|
550
|
+
*/
|
|
551
|
+
ocr_image(params: WSSendParam['ocr_image']): Promise<{
|
|
552
|
+
text: string;
|
|
553
|
+
pt1: {
|
|
554
|
+
x: string;
|
|
555
|
+
y: string;
|
|
556
|
+
};
|
|
557
|
+
pt2: {
|
|
558
|
+
x: string;
|
|
559
|
+
y: string;
|
|
560
|
+
};
|
|
561
|
+
pt3: {
|
|
562
|
+
x: string;
|
|
563
|
+
y: string;
|
|
564
|
+
};
|
|
565
|
+
pt4: {
|
|
566
|
+
x: string;
|
|
567
|
+
y: string;
|
|
568
|
+
};
|
|
569
|
+
charBox: {
|
|
570
|
+
charText: string;
|
|
571
|
+
charBox: {
|
|
572
|
+
pt1: {
|
|
573
|
+
x: string;
|
|
574
|
+
y: string;
|
|
575
|
+
};
|
|
576
|
+
pt2: {
|
|
577
|
+
x: string;
|
|
578
|
+
y: string;
|
|
579
|
+
};
|
|
580
|
+
pt3: {
|
|
581
|
+
x: string;
|
|
582
|
+
y: string;
|
|
583
|
+
};
|
|
584
|
+
pt4: {
|
|
585
|
+
x: string;
|
|
586
|
+
y: string;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
}[];
|
|
590
|
+
score: string;
|
|
591
|
+
}[]>;
|
|
592
|
+
/**
|
|
593
|
+
* @gocqhttp
|
|
594
|
+
* 获取群系统消息
|
|
595
|
+
*/
|
|
596
|
+
get_group_system_msg(params?: WSSendParam['get_group_system_msg']): Promise<{
|
|
597
|
+
invited_requests: {
|
|
598
|
+
request_id: number;
|
|
599
|
+
invitor_uin: number;
|
|
600
|
+
invitor_nick: string;
|
|
601
|
+
group_id: number;
|
|
602
|
+
message: string;
|
|
603
|
+
group_name: string;
|
|
604
|
+
checked: boolean;
|
|
605
|
+
actor: number;
|
|
606
|
+
requester_nick: string;
|
|
607
|
+
}[];
|
|
608
|
+
join_requests: {
|
|
609
|
+
request_id: number;
|
|
610
|
+
invitor_uin: number;
|
|
611
|
+
invitor_nick: string;
|
|
612
|
+
group_id: number;
|
|
613
|
+
message: string;
|
|
614
|
+
group_name: string;
|
|
615
|
+
checked: boolean;
|
|
616
|
+
actor: number;
|
|
617
|
+
requester_nick: string;
|
|
618
|
+
}[];
|
|
619
|
+
}>;
|
|
620
|
+
/**
|
|
621
|
+
* @gocqhttp
|
|
622
|
+
* 获取群精华列表
|
|
623
|
+
*/
|
|
624
|
+
get_essence_msg_list(params: WSSendParam['get_essence_msg_list']): Promise<{
|
|
625
|
+
msg_seq: number;
|
|
626
|
+
msg_random: number;
|
|
627
|
+
sender_id: number;
|
|
628
|
+
sender_nick: string;
|
|
629
|
+
operator_id: number;
|
|
630
|
+
operator_nick: string;
|
|
631
|
+
message_id: number;
|
|
632
|
+
operator_time: number;
|
|
633
|
+
content: import("./Structs.js").Receive[keyof import("./Structs.js").Receive][];
|
|
634
|
+
}[]>;
|
|
635
|
+
/**
|
|
636
|
+
* @gocqhttp
|
|
637
|
+
* 获取@全体成员剩余次数
|
|
638
|
+
*/
|
|
639
|
+
get_group_at_all_remain(params: WSSendParam['get_group_at_all_remain']): Promise<{
|
|
640
|
+
can_at_all: boolean;
|
|
641
|
+
remain_at_all_count_for_group: number;
|
|
642
|
+
remain_at_all_count_for_uin: number;
|
|
643
|
+
}>;
|
|
644
|
+
/**
|
|
645
|
+
* @gocqhttp
|
|
646
|
+
* 设置群头像
|
|
647
|
+
*/
|
|
648
|
+
set_group_portrait(params: WSSendParam['set_group_portrait']): Promise<{
|
|
649
|
+
result: 0;
|
|
650
|
+
errMsg: string;
|
|
651
|
+
}>;
|
|
652
|
+
/**
|
|
653
|
+
* @gocqhttp
|
|
654
|
+
* 设置精华消息
|
|
655
|
+
*/
|
|
656
|
+
set_essence_msg(params: WSSendParam['set_essence_msg']): Promise<{
|
|
657
|
+
errCode: 0;
|
|
658
|
+
errMsg: string;
|
|
659
|
+
}>;
|
|
660
|
+
/**
|
|
661
|
+
* @gocqhttp
|
|
662
|
+
* 删除精华消息
|
|
663
|
+
*/
|
|
664
|
+
delete_essence_msg(params: WSSendParam['delete_essence_msg']): Promise<{
|
|
665
|
+
errCode: 0;
|
|
666
|
+
errMsg: string;
|
|
667
|
+
}>;
|
|
668
|
+
/**
|
|
669
|
+
* @gocqhttp
|
|
670
|
+
* 设置群公告
|
|
671
|
+
*/
|
|
672
|
+
_send_group_notice(params: WSSendParam['_send_group_notice']): Promise<null>;
|
|
673
|
+
/**
|
|
674
|
+
* @gocqhttp
|
|
675
|
+
* 获取群公告
|
|
676
|
+
*/
|
|
677
|
+
_get_group_notice(params: WSSendParam['_get_group_notice']): Promise<{
|
|
678
|
+
notice_id: string;
|
|
679
|
+
sender_id: number;
|
|
680
|
+
publish_time: number;
|
|
681
|
+
message: {
|
|
682
|
+
text: string;
|
|
683
|
+
images: {
|
|
684
|
+
id: string;
|
|
685
|
+
height: string;
|
|
686
|
+
width: string;
|
|
687
|
+
}[];
|
|
688
|
+
};
|
|
689
|
+
}[]>;
|
|
690
|
+
/**
|
|
691
|
+
* @gocqhttp
|
|
692
|
+
* 上传群文件
|
|
693
|
+
*/
|
|
694
|
+
upload_group_file(params: WSSendParam['upload_group_file']): Promise<null>;
|
|
695
|
+
/**
|
|
696
|
+
* @gocqhttp
|
|
697
|
+
* 删除群文件
|
|
698
|
+
*/
|
|
699
|
+
delete_group_file(params: WSSendParam['delete_group_file']): Promise<{
|
|
700
|
+
result: 0;
|
|
701
|
+
errMsg: string;
|
|
702
|
+
transGroupFileResult: {
|
|
703
|
+
result: {
|
|
704
|
+
retCode: 0;
|
|
705
|
+
retMsg: string;
|
|
706
|
+
clientWording: string;
|
|
707
|
+
};
|
|
708
|
+
successFileIdList: string[];
|
|
709
|
+
failFileIdList: string[];
|
|
710
|
+
};
|
|
711
|
+
}>;
|
|
712
|
+
/**
|
|
713
|
+
* @gocqhttp
|
|
714
|
+
* 创建群文件文件夹
|
|
715
|
+
*/
|
|
716
|
+
create_group_file_folder(params: WSSendParam['create_group_file_folder']): Promise<{
|
|
717
|
+
result: {
|
|
718
|
+
retCode: 0;
|
|
719
|
+
retMsg: string;
|
|
720
|
+
clientWording: "";
|
|
721
|
+
};
|
|
722
|
+
groupItem: {
|
|
723
|
+
peerId: string;
|
|
724
|
+
type: number;
|
|
725
|
+
folderInfo: {
|
|
726
|
+
folderId: string;
|
|
727
|
+
parentFolderId: string;
|
|
728
|
+
folderName: string;
|
|
729
|
+
createTime: number;
|
|
730
|
+
modifyTime: number;
|
|
731
|
+
createUin: string;
|
|
732
|
+
creatorName: string;
|
|
733
|
+
totalFileCount: number;
|
|
734
|
+
modifyUin: string;
|
|
735
|
+
modifyName: string;
|
|
736
|
+
usedSpace: string;
|
|
737
|
+
};
|
|
738
|
+
fileInfo: null;
|
|
739
|
+
};
|
|
740
|
+
}>;
|
|
741
|
+
/**
|
|
742
|
+
* @gocqhttp
|
|
743
|
+
* 删除群文件文件夹
|
|
744
|
+
*/
|
|
745
|
+
delete_group_folder(params: WSSendParam['delete_group_folder']): Promise<{
|
|
746
|
+
retCode: 0;
|
|
747
|
+
retMsg: string;
|
|
748
|
+
clientWording: "";
|
|
749
|
+
}>;
|
|
750
|
+
/**
|
|
751
|
+
* @gocqhttp
|
|
752
|
+
* 获取群文件系统信息
|
|
753
|
+
*/
|
|
754
|
+
get_group_file_system_info(params: WSSendParam['get_group_file_system_info']): Promise<{
|
|
755
|
+
file_count: number;
|
|
756
|
+
limit_count: 10000;
|
|
757
|
+
used_space: 0;
|
|
758
|
+
total_space: 10737418240;
|
|
759
|
+
}>;
|
|
760
|
+
/**
|
|
761
|
+
* @gocqhttp
|
|
762
|
+
* 获取群文件树
|
|
763
|
+
*/
|
|
764
|
+
get_group_root_files(params: WSSendParam['get_group_root_files']): Promise<{
|
|
765
|
+
files: {
|
|
766
|
+
group_id: number;
|
|
767
|
+
file_id: string;
|
|
768
|
+
file_name: string;
|
|
769
|
+
busid: number;
|
|
770
|
+
size: number;
|
|
771
|
+
file_size: number;
|
|
772
|
+
upload_time: number;
|
|
773
|
+
dead_time: number;
|
|
774
|
+
modify_time: number;
|
|
775
|
+
download_times: number;
|
|
776
|
+
uploader: number;
|
|
777
|
+
uploader_name: string;
|
|
778
|
+
}[];
|
|
779
|
+
folders: {
|
|
780
|
+
group_id: number;
|
|
781
|
+
folder_id: string;
|
|
782
|
+
folder: string;
|
|
783
|
+
folder_name: string;
|
|
784
|
+
create_time: number;
|
|
785
|
+
creator: number;
|
|
786
|
+
creator_name: string;
|
|
787
|
+
total_file_count: number;
|
|
788
|
+
}[];
|
|
789
|
+
}>;
|
|
790
|
+
/**
|
|
791
|
+
* @gocqhttp
|
|
792
|
+
* 根据文件夹获取群文件
|
|
793
|
+
*/
|
|
794
|
+
get_group_files_by_folder(params: WSSendParam['get_group_files_by_folder']): Promise<{
|
|
795
|
+
files: {
|
|
796
|
+
group_id: number;
|
|
797
|
+
file_id: string;
|
|
798
|
+
file_name: string;
|
|
799
|
+
busid: number;
|
|
800
|
+
size: number;
|
|
801
|
+
file_size: number;
|
|
802
|
+
upload_time: number;
|
|
803
|
+
dead_time: number;
|
|
804
|
+
modify_time: number;
|
|
805
|
+
download_times: number;
|
|
806
|
+
uploader: number;
|
|
807
|
+
uploader_name: string;
|
|
808
|
+
}[];
|
|
809
|
+
folders: {
|
|
810
|
+
group_id: number;
|
|
811
|
+
folder_id: string;
|
|
812
|
+
folder: string;
|
|
813
|
+
folder_name: string;
|
|
814
|
+
create_time: number;
|
|
815
|
+
creator: number;
|
|
816
|
+
creator_name: string;
|
|
817
|
+
total_file_count: number;
|
|
818
|
+
}[];
|
|
819
|
+
}>;
|
|
820
|
+
/**
|
|
821
|
+
* @gocqhttp
|
|
822
|
+
* 获取群文件链接
|
|
823
|
+
*/
|
|
824
|
+
get_group_file_url(params: WSSendParam['get_group_file_url']): Promise<{
|
|
825
|
+
url: string;
|
|
826
|
+
}>;
|
|
827
|
+
/**
|
|
828
|
+
* @gocqhttp
|
|
829
|
+
* 发送私聊文件
|
|
830
|
+
*/
|
|
831
|
+
upload_private_file(params: WSSendParam['upload_private_file']): Promise<null>;
|
|
832
|
+
/**
|
|
833
|
+
* @gocqhttp
|
|
834
|
+
* 重置事件过滤器
|
|
835
|
+
*/
|
|
836
|
+
/**
|
|
837
|
+
* @gocqhttp
|
|
838
|
+
* 下载文件
|
|
839
|
+
*/
|
|
840
|
+
download_file(params: WSSendParam['download_file']): Promise<{
|
|
841
|
+
file: string;
|
|
842
|
+
}>;
|
|
843
|
+
/**
|
|
844
|
+
* @gocqhttp
|
|
845
|
+
* 检查链接安全性
|
|
846
|
+
*/
|
|
847
|
+
/**
|
|
848
|
+
* @gocqhttp
|
|
849
|
+
* 获取中文分词
|
|
850
|
+
*/
|
|
851
|
+
/**
|
|
852
|
+
* @gocqhttp
|
|
853
|
+
* 快捷操作
|
|
854
|
+
*/
|
|
855
|
+
'.handle_quick_operation': (params: WSSendParam[".handle_quick_operation"]) => Promise<null>;
|
|
856
|
+
/**
|
|
857
|
+
* @napcat
|
|
858
|
+
* 留空占位符
|
|
859
|
+
*/
|
|
860
|
+
/**
|
|
861
|
+
* @napcat
|
|
862
|
+
* 设置自定义在线状态
|
|
863
|
+
*/
|
|
864
|
+
set_diy_online_status(params: WSSendParam['set_diy_online_status']): Promise<string>;
|
|
865
|
+
/**
|
|
866
|
+
* @napcat
|
|
867
|
+
* 获取分享卡片JSON
|
|
868
|
+
*/
|
|
869
|
+
ArkSharePeer(params: WSSendParam['ArkSharePeer']): Promise<{
|
|
870
|
+
errCode: 0;
|
|
871
|
+
errMsg: string;
|
|
872
|
+
arkJson: string;
|
|
873
|
+
}>;
|
|
874
|
+
/**
|
|
875
|
+
* @napcat
|
|
876
|
+
* 获取分享卡片JSON
|
|
877
|
+
*/
|
|
878
|
+
ArkShareGroup(params: WSSendParam['ArkShareGroup']): Promise<string>;
|
|
879
|
+
/**
|
|
880
|
+
* @napcat
|
|
881
|
+
* 正常重启
|
|
882
|
+
*/
|
|
883
|
+
/**
|
|
884
|
+
* @napcat
|
|
885
|
+
* 获取机器人ID范围
|
|
886
|
+
*/
|
|
887
|
+
get_robot_uin_range(): Promise<{
|
|
888
|
+
minUin: string;
|
|
889
|
+
maxUin: string;
|
|
890
|
+
}[]>;
|
|
891
|
+
/**
|
|
892
|
+
* @napcat
|
|
893
|
+
* 设置在线状态
|
|
894
|
+
*/
|
|
895
|
+
set_online_status(params: WSSendParam['set_online_status']): Promise<null>;
|
|
896
|
+
/**
|
|
897
|
+
* @napcat
|
|
898
|
+
* 获取分类好友列表
|
|
899
|
+
*/
|
|
900
|
+
get_friends_with_category(): Promise<{
|
|
901
|
+
categoryId: number;
|
|
902
|
+
categorySortId: number;
|
|
903
|
+
categoryName: string;
|
|
904
|
+
categoryMbCount: number;
|
|
905
|
+
onlineCount: number;
|
|
906
|
+
buddyList: import("./Interfaces.js").WSSendReturn["get_friend_list"];
|
|
907
|
+
}[]>;
|
|
908
|
+
/**
|
|
909
|
+
* @napcat
|
|
910
|
+
* 设置QQ头像
|
|
911
|
+
*/
|
|
912
|
+
set_qq_avatar(params: WSSendParam['set_qq_avatar']): Promise<null>;
|
|
913
|
+
/**
|
|
914
|
+
* @napcat
|
|
915
|
+
* 获取文件
|
|
916
|
+
*/
|
|
917
|
+
get_file(params: WSSendParam['get_file']): Promise<{
|
|
918
|
+
file: string;
|
|
919
|
+
url: string;
|
|
920
|
+
file_size: string;
|
|
921
|
+
file_name: string;
|
|
922
|
+
}>;
|
|
923
|
+
/**
|
|
924
|
+
* @napcat
|
|
925
|
+
* 转发消息给好友
|
|
926
|
+
*/
|
|
927
|
+
forward_friend_single_msg(params: WSSendParam['forward_friend_single_msg']): Promise<null>;
|
|
928
|
+
/**
|
|
929
|
+
* @napcat
|
|
930
|
+
* 转发消息给群
|
|
931
|
+
*/
|
|
932
|
+
forward_group_single_msg(params: WSSendParam['forward_group_single_msg']): Promise<null>;
|
|
933
|
+
/**
|
|
934
|
+
* @napcat
|
|
935
|
+
* 中英文翻译
|
|
936
|
+
*/
|
|
937
|
+
translate_en2zh(params: WSSendParam['translate_en2zh']): Promise<string[]>;
|
|
938
|
+
/**
|
|
939
|
+
* @napcat
|
|
940
|
+
* 设置表情回复
|
|
941
|
+
*/
|
|
942
|
+
set_msg_emoji_like(params: WSSendParam['set_msg_emoji_like']): Promise<{
|
|
943
|
+
result: 0;
|
|
944
|
+
errMsg: string;
|
|
945
|
+
}>;
|
|
946
|
+
/**
|
|
947
|
+
* @napcat
|
|
948
|
+
* 发送合并转发
|
|
949
|
+
*/
|
|
950
|
+
send_forward_msg(params: WSSendParam['send_forward_msg']): Promise<{
|
|
951
|
+
message_id: number;
|
|
952
|
+
res_id: string;
|
|
953
|
+
}>;
|
|
954
|
+
/**
|
|
955
|
+
* @napcat
|
|
956
|
+
* 标记私聊已读
|
|
957
|
+
*/
|
|
958
|
+
mark_private_msg_as_read(params: WSSendParam['mark_private_msg_as_read']): Promise<null>;
|
|
959
|
+
/**
|
|
960
|
+
* @napcat
|
|
961
|
+
* 标记群聊已读
|
|
962
|
+
*/
|
|
963
|
+
mark_group_msg_as_read(params: WSSendParam['mark_group_msg_as_read']): Promise<null>;
|
|
964
|
+
/**
|
|
965
|
+
* @napcat
|
|
966
|
+
* 获取私聊历史记录
|
|
967
|
+
*/
|
|
968
|
+
get_friend_msg_history(params: WSSendParam['get_friend_msg_history']): Promise<{
|
|
969
|
+
messages: import("./Interfaces.js").WSSendReturn["get_msg"][];
|
|
970
|
+
}>;
|
|
971
|
+
/**
|
|
972
|
+
* @napcat
|
|
973
|
+
* 创建收藏
|
|
974
|
+
*/
|
|
975
|
+
create_collection(params: WSSendParam['create_collection']): Promise<{
|
|
976
|
+
result: 0;
|
|
977
|
+
errMsg: string;
|
|
978
|
+
}>;
|
|
979
|
+
/**
|
|
980
|
+
* @napcat
|
|
981
|
+
* 获取收藏
|
|
982
|
+
*/
|
|
983
|
+
get_collection_list(params: WSSendParam['get_collection_list']): Promise<{
|
|
984
|
+
result: 0;
|
|
985
|
+
errMsg: string;
|
|
986
|
+
collectionSearchList: {
|
|
987
|
+
collectionItemList: {
|
|
988
|
+
cid: string;
|
|
989
|
+
type: number;
|
|
990
|
+
status: number;
|
|
991
|
+
author: {
|
|
992
|
+
type: number;
|
|
993
|
+
numId: string;
|
|
994
|
+
strId: string;
|
|
995
|
+
groupId: string;
|
|
996
|
+
groupName: string;
|
|
997
|
+
uid: string;
|
|
998
|
+
};
|
|
999
|
+
bid: number;
|
|
1000
|
+
category: number;
|
|
1001
|
+
createTime: string;
|
|
1002
|
+
collectTime: string;
|
|
1003
|
+
modifyTime: string;
|
|
1004
|
+
sequence: string;
|
|
1005
|
+
shareUrl: string;
|
|
1006
|
+
customGroupId: number;
|
|
1007
|
+
securityBeat: boolean;
|
|
1008
|
+
summary: {
|
|
1009
|
+
textSummary: unknown;
|
|
1010
|
+
linkSummary: unknown;
|
|
1011
|
+
gallerySummary: unknown;
|
|
1012
|
+
audioSummary: unknown;
|
|
1013
|
+
videoSummary: unknown;
|
|
1014
|
+
fileSummary: unknown;
|
|
1015
|
+
locationSummary: unknown;
|
|
1016
|
+
richMediaSummary: unknown;
|
|
1017
|
+
};
|
|
1018
|
+
}[];
|
|
1019
|
+
hasMore: boolean;
|
|
1020
|
+
bottomTimeStamp: string;
|
|
1021
|
+
};
|
|
1022
|
+
}>;
|
|
1023
|
+
/**
|
|
1024
|
+
* @napcat
|
|
1025
|
+
* 设置签名
|
|
1026
|
+
*/
|
|
1027
|
+
set_self_longnick(params: WSSendParam['set_self_longnick']): Promise<{
|
|
1028
|
+
result: 0;
|
|
1029
|
+
errMsg: string;
|
|
1030
|
+
}>;
|
|
1031
|
+
/**
|
|
1032
|
+
* @napcat
|
|
1033
|
+
* 获取最近联系
|
|
1034
|
+
*/
|
|
1035
|
+
get_recent_contact(params?: WSSendParam['get_recent_contact']): Promise<({
|
|
1036
|
+
lastestMsg: import("./Interfaces.js").WSSendReturn["get_msg"];
|
|
1037
|
+
peerUin: string;
|
|
1038
|
+
remark: string;
|
|
1039
|
+
msgTime: string;
|
|
1040
|
+
chatType: number;
|
|
1041
|
+
msgId: string;
|
|
1042
|
+
sendNickName: string;
|
|
1043
|
+
sendMemberName: string;
|
|
1044
|
+
peerName: string;
|
|
1045
|
+
} | {
|
|
1046
|
+
peerUin: string;
|
|
1047
|
+
remark: string;
|
|
1048
|
+
msgTime: number;
|
|
1049
|
+
chatType: number;
|
|
1050
|
+
msgId: string;
|
|
1051
|
+
sendNickName: string;
|
|
1052
|
+
sendMemberName: string;
|
|
1053
|
+
peerName: string;
|
|
1054
|
+
})[]>;
|
|
1055
|
+
/**
|
|
1056
|
+
* @napcat
|
|
1057
|
+
* 标记所有为已读
|
|
1058
|
+
*/
|
|
1059
|
+
_mark_all_as_read(): Promise<null>;
|
|
1060
|
+
/**
|
|
1061
|
+
* @napcat
|
|
1062
|
+
* 获取个人资料
|
|
1063
|
+
*/
|
|
1064
|
+
get_profile_like(): Promise<{
|
|
1065
|
+
uid: string;
|
|
1066
|
+
time: number;
|
|
1067
|
+
favoriteInfo: {
|
|
1068
|
+
total_count: number;
|
|
1069
|
+
last_time: number;
|
|
1070
|
+
today_count: number;
|
|
1071
|
+
userInfos: {
|
|
1072
|
+
age: number;
|
|
1073
|
+
bAvailableCnt: number;
|
|
1074
|
+
bTodayVotedCnt: number;
|
|
1075
|
+
count: number;
|
|
1076
|
+
customId: number;
|
|
1077
|
+
gender: number;
|
|
1078
|
+
giftCount: number;
|
|
1079
|
+
isFriend: boolean;
|
|
1080
|
+
isSvip: boolean;
|
|
1081
|
+
isvip: boolean;
|
|
1082
|
+
lastCharged: number;
|
|
1083
|
+
latestTime: number;
|
|
1084
|
+
nick: string;
|
|
1085
|
+
src: number;
|
|
1086
|
+
uid: string;
|
|
1087
|
+
uin: number;
|
|
1088
|
+
}[];
|
|
1089
|
+
};
|
|
1090
|
+
voteInfo: {
|
|
1091
|
+
total_count: number;
|
|
1092
|
+
new_count: number;
|
|
1093
|
+
new_nearby_count: number;
|
|
1094
|
+
last_visit_time: number;
|
|
1095
|
+
userInfos: {
|
|
1096
|
+
age: number;
|
|
1097
|
+
bAvailableCnt: number;
|
|
1098
|
+
bTodayVotedCnt: number;
|
|
1099
|
+
count: number;
|
|
1100
|
+
customId: number;
|
|
1101
|
+
gender: number;
|
|
1102
|
+
giftCount: number;
|
|
1103
|
+
isFriend: boolean;
|
|
1104
|
+
isSvip: boolean;
|
|
1105
|
+
isvip: boolean;
|
|
1106
|
+
lastCharged: number;
|
|
1107
|
+
latestTime: number;
|
|
1108
|
+
nick: string;
|
|
1109
|
+
src: number;
|
|
1110
|
+
uid: string;
|
|
1111
|
+
uin: number;
|
|
1112
|
+
}[];
|
|
1113
|
+
};
|
|
1114
|
+
}[]>;
|
|
1115
|
+
/**
|
|
1116
|
+
* @napcat
|
|
1117
|
+
* 获取收藏表情
|
|
1118
|
+
*/
|
|
1119
|
+
fetch_custom_face(params?: WSSendParam['fetch_custom_face']): Promise<string[]>;
|
|
1120
|
+
/**
|
|
1121
|
+
* @napcat
|
|
1122
|
+
* 获取表情回复
|
|
1123
|
+
*/
|
|
1124
|
+
fetch_emoji_like(params: WSSendParam['fetch_emoji_like']): Promise<{
|
|
1125
|
+
result: 0;
|
|
1126
|
+
errMsg: string;
|
|
1127
|
+
emojiLikesList: {
|
|
1128
|
+
tinyId: string;
|
|
1129
|
+
nickName: string;
|
|
1130
|
+
headUrl: string;
|
|
1131
|
+
}[];
|
|
1132
|
+
cookie: string;
|
|
1133
|
+
isLastPage: boolean;
|
|
1134
|
+
isFirstPage: boolean;
|
|
1135
|
+
}>;
|
|
1136
|
+
/**
|
|
1137
|
+
* @napcat
|
|
1138
|
+
* 设置输入状态
|
|
1139
|
+
*/
|
|
1140
|
+
set_input_status(params: WSSendParam['set_input_status']): Promise<{
|
|
1141
|
+
result: 0;
|
|
1142
|
+
errMsg: string;
|
|
1143
|
+
}>;
|
|
1144
|
+
/**
|
|
1145
|
+
* @napcat
|
|
1146
|
+
* 获取群信息扩展
|
|
1147
|
+
*/
|
|
1148
|
+
get_group_info_ex(params: WSSendParam['get_group_info_ex']): Promise<{
|
|
1149
|
+
groupCode: string;
|
|
1150
|
+
resultCode: 0;
|
|
1151
|
+
extInfo: {
|
|
1152
|
+
groupInfoExtSeq: number;
|
|
1153
|
+
reserve: number;
|
|
1154
|
+
luckyWordId: string;
|
|
1155
|
+
lightCharNum: number;
|
|
1156
|
+
luckyWord: string;
|
|
1157
|
+
starId: number;
|
|
1158
|
+
essentialMsgSwitch: number;
|
|
1159
|
+
todoSeq: number;
|
|
1160
|
+
blacklistExpireTime: number;
|
|
1161
|
+
isLimitGroupRtc: number;
|
|
1162
|
+
companyId: number;
|
|
1163
|
+
hasGroupCustomPortrait: number;
|
|
1164
|
+
bindGuildId: string;
|
|
1165
|
+
groupOwnerId: {
|
|
1166
|
+
memberUin: string;
|
|
1167
|
+
memberUid: string;
|
|
1168
|
+
memberQid: string;
|
|
1169
|
+
};
|
|
1170
|
+
essentialMsgPrivilege: number;
|
|
1171
|
+
msgEventSeq: string;
|
|
1172
|
+
inviteRobotSwitch: number;
|
|
1173
|
+
gangUpId: string;
|
|
1174
|
+
qqMusicMedalSwitch: number;
|
|
1175
|
+
showPlayTogetherSwitch: number;
|
|
1176
|
+
groupFlagPro1: string;
|
|
1177
|
+
groupBindGuildIds: {
|
|
1178
|
+
guildIds: string[];
|
|
1179
|
+
};
|
|
1180
|
+
viewedMsgDisappearTime: string;
|
|
1181
|
+
groupExtFlameData: {
|
|
1182
|
+
switchState: number;
|
|
1183
|
+
state: number;
|
|
1184
|
+
dayNums: string[];
|
|
1185
|
+
version: number;
|
|
1186
|
+
updateTime: string;
|
|
1187
|
+
isDisplayDayNum: false;
|
|
1188
|
+
};
|
|
1189
|
+
groupBindGuildSwitch: number;
|
|
1190
|
+
groupAioBindGuildId: string;
|
|
1191
|
+
groupExcludeGuildIds: {
|
|
1192
|
+
guildIds: string[];
|
|
1193
|
+
};
|
|
1194
|
+
fullGroupExpansionSwitch: number;
|
|
1195
|
+
fullGroupExpansionSeq: string;
|
|
1196
|
+
inviteRobotMemberSwitch: number;
|
|
1197
|
+
inviteRobotMemberExamine: number;
|
|
1198
|
+
groupSquareSwitch: number;
|
|
1199
|
+
};
|
|
1200
|
+
}>;
|
|
1201
|
+
/**
|
|
1202
|
+
* @napcat
|
|
1203
|
+
* 获取群详细信息
|
|
1204
|
+
*/
|
|
1205
|
+
get_group_detail_info(params: WSSendParam['get_group_detail_info']): Promise<{
|
|
1206
|
+
groupCode: string;
|
|
1207
|
+
groupUin: string;
|
|
1208
|
+
ownerUid: string;
|
|
1209
|
+
ownerUin: string;
|
|
1210
|
+
groupFlag: number;
|
|
1211
|
+
groupFlagExt: number;
|
|
1212
|
+
maxMemberNum: number;
|
|
1213
|
+
memberNum: number;
|
|
1214
|
+
groupOption: number;
|
|
1215
|
+
classExt: number;
|
|
1216
|
+
groupName: string;
|
|
1217
|
+
fingerMemo: string;
|
|
1218
|
+
groupQuestion: string;
|
|
1219
|
+
certType: number;
|
|
1220
|
+
richFingerMemo: string;
|
|
1221
|
+
tagRecord: {
|
|
1222
|
+
fromUid: string;
|
|
1223
|
+
groupCode: string;
|
|
1224
|
+
tagId: string;
|
|
1225
|
+
setTime: string;
|
|
1226
|
+
goodNum: number;
|
|
1227
|
+
badNum: number;
|
|
1228
|
+
tagLen: number;
|
|
1229
|
+
tagValue: string;
|
|
1230
|
+
}[];
|
|
1231
|
+
shutUpAllTimestamp: number;
|
|
1232
|
+
shutUpMeTimestamp: number;
|
|
1233
|
+
groupTypeFlag: number;
|
|
1234
|
+
privilegeFlag: number;
|
|
1235
|
+
groupSecLevel: number;
|
|
1236
|
+
groupFlagExt3: number;
|
|
1237
|
+
isConfGroup: number;
|
|
1238
|
+
isModifyConfGroupFace: number;
|
|
1239
|
+
isModifyConfGroupName: number;
|
|
1240
|
+
groupFlagExt4: number;
|
|
1241
|
+
groupMemo: string;
|
|
1242
|
+
cmdUinMsgSeq: number;
|
|
1243
|
+
cmdUinJoinTime: number;
|
|
1244
|
+
cmdUinUinFlag: number;
|
|
1245
|
+
cmdUinMsgMask: number;
|
|
1246
|
+
groupSecLevelInfo: number;
|
|
1247
|
+
cmdUinPrivilege: number;
|
|
1248
|
+
cmdUinFlagEx2: number;
|
|
1249
|
+
appealDeadline: number;
|
|
1250
|
+
remarkName: string;
|
|
1251
|
+
isTop: boolean;
|
|
1252
|
+
groupFace: number;
|
|
1253
|
+
groupGeoInfo: {
|
|
1254
|
+
ownerUid: string;
|
|
1255
|
+
SetTime: number;
|
|
1256
|
+
CityId: number;
|
|
1257
|
+
Longitude: string;
|
|
1258
|
+
Latitude: string;
|
|
1259
|
+
GeoContent: string;
|
|
1260
|
+
poiId: string;
|
|
1261
|
+
};
|
|
1262
|
+
certificationText: string;
|
|
1263
|
+
cmdUinRingtoneId: number;
|
|
1264
|
+
longGroupName: string;
|
|
1265
|
+
autoAgreeJoinGroupUserNumForConfGroup: number;
|
|
1266
|
+
autoAgreeJoinGroupUserNumForNormalGroup: number;
|
|
1267
|
+
cmdUinFlagExt3Grocery: number;
|
|
1268
|
+
groupCardPrefix: {
|
|
1269
|
+
introduction: string;
|
|
1270
|
+
rptPrefix: string[];
|
|
1271
|
+
};
|
|
1272
|
+
groupExt: {
|
|
1273
|
+
groupInfoExtSeq: number;
|
|
1274
|
+
reserve: number;
|
|
1275
|
+
luckyWordId: string;
|
|
1276
|
+
lightCharNum: number;
|
|
1277
|
+
luckyWord: string;
|
|
1278
|
+
starId: number;
|
|
1279
|
+
essentialMsgSwitch: number;
|
|
1280
|
+
todoSeq: number;
|
|
1281
|
+
blacklistExpireTime: number;
|
|
1282
|
+
isLimitGroupRtc: number;
|
|
1283
|
+
companyId: number;
|
|
1284
|
+
hasGroupCustomPortrait: number;
|
|
1285
|
+
bindGuildId: string;
|
|
1286
|
+
groupOwnerId: {
|
|
1287
|
+
memberUin: string;
|
|
1288
|
+
memberUid: string;
|
|
1289
|
+
memberQid: string;
|
|
1290
|
+
};
|
|
1291
|
+
essentialMsgPrivilege: number;
|
|
1292
|
+
msgEventSeq: string;
|
|
1293
|
+
inviteRobotSwitch: number;
|
|
1294
|
+
gangUpId: string;
|
|
1295
|
+
qqMusicMedalSwitch: number;
|
|
1296
|
+
showPlayTogetherSwitch: number;
|
|
1297
|
+
groupFlagPro1: string;
|
|
1298
|
+
groupBindGuildIds: {
|
|
1299
|
+
guildIds: string[];
|
|
1300
|
+
};
|
|
1301
|
+
viewedMsgDisappearTime: string;
|
|
1302
|
+
groupExtFlameData: {
|
|
1303
|
+
switchState: number;
|
|
1304
|
+
state: number;
|
|
1305
|
+
dayNums: string[];
|
|
1306
|
+
version: number;
|
|
1307
|
+
updateTime: string;
|
|
1308
|
+
isDisplayDayNum: false;
|
|
1309
|
+
};
|
|
1310
|
+
groupBindGuildSwitch: number;
|
|
1311
|
+
groupAioBindGuildId: string;
|
|
1312
|
+
groupExcludeGuildIds: {
|
|
1313
|
+
guildIds: string[];
|
|
1314
|
+
};
|
|
1315
|
+
fullGroupExpansionSwitch: number;
|
|
1316
|
+
fullGroupExpansionSeq: string;
|
|
1317
|
+
inviteRobotMemberSwitch: number;
|
|
1318
|
+
inviteRobotMemberExamine: number;
|
|
1319
|
+
groupSquareSwitch: number;
|
|
1320
|
+
};
|
|
1321
|
+
msgLimitFrequency: number;
|
|
1322
|
+
hlGuildAppid: number;
|
|
1323
|
+
hlGuildSubType: number;
|
|
1324
|
+
isAllowRecallMsg: number;
|
|
1325
|
+
confUin: string;
|
|
1326
|
+
confMaxMsgSeq: number;
|
|
1327
|
+
confToGroupTime: number;
|
|
1328
|
+
groupSchoolInfo: {
|
|
1329
|
+
location: string;
|
|
1330
|
+
grade: number;
|
|
1331
|
+
school: string;
|
|
1332
|
+
};
|
|
1333
|
+
activeMemberNum: number;
|
|
1334
|
+
groupGrade: number;
|
|
1335
|
+
groupCreateTime: number;
|
|
1336
|
+
subscriptionUin: string;
|
|
1337
|
+
subscriptionUid: string;
|
|
1338
|
+
noFingerOpenFlag: number;
|
|
1339
|
+
noCodeFingerOpenFlag: number;
|
|
1340
|
+
isGroupFreeze: number;
|
|
1341
|
+
allianceId: string;
|
|
1342
|
+
groupExtOnly: {
|
|
1343
|
+
tribeId: number;
|
|
1344
|
+
moneyForAddGroup: number;
|
|
1345
|
+
};
|
|
1346
|
+
isAllowConfGroupMemberModifyGroupName: number;
|
|
1347
|
+
isAllowConfGroupMemberNick: number;
|
|
1348
|
+
isAllowConfGroupMemberAtAll: number;
|
|
1349
|
+
groupClassText: string;
|
|
1350
|
+
groupFreezeReason: number;
|
|
1351
|
+
headPortraitSeq: number;
|
|
1352
|
+
groupHeadPortrait: {
|
|
1353
|
+
portraitCnt: number;
|
|
1354
|
+
portraitInfo: string[];
|
|
1355
|
+
defaultId: number;
|
|
1356
|
+
verifyingPortraitCnt: number;
|
|
1357
|
+
verifyingPortraitInfo: string[];
|
|
1358
|
+
};
|
|
1359
|
+
cmdUinJoinMsgSeq: number;
|
|
1360
|
+
cmdUinJoinRealMsgSeq: number;
|
|
1361
|
+
groupAnswer: string;
|
|
1362
|
+
groupAdminMaxNum: number;
|
|
1363
|
+
inviteNoAuthNumLimit: string;
|
|
1364
|
+
hlGuildOrgId: number;
|
|
1365
|
+
isAllowHlGuildBinary: number;
|
|
1366
|
+
localExitGroupReason: number;
|
|
1367
|
+
group_all_shut: number;
|
|
1368
|
+
group_remark: string;
|
|
1369
|
+
group_id: number;
|
|
1370
|
+
group_name: string;
|
|
1371
|
+
member_count: number;
|
|
1372
|
+
max_member_count: number;
|
|
1373
|
+
}>;
|
|
1374
|
+
/**
|
|
1375
|
+
* @napcat
|
|
1376
|
+
* 获取群忽略添加请求
|
|
1377
|
+
*/
|
|
1378
|
+
get_group_ignore_add_request(params: WSSendParam['get_group_ignore_add_request']): Promise<{
|
|
1379
|
+
request_id: number;
|
|
1380
|
+
invitor_uin: number;
|
|
1381
|
+
invitor_nick: string;
|
|
1382
|
+
group_id: number;
|
|
1383
|
+
message: string;
|
|
1384
|
+
group_name: string;
|
|
1385
|
+
checked: boolean;
|
|
1386
|
+
actor: number;
|
|
1387
|
+
requester_nick: string;
|
|
1388
|
+
}[]>;
|
|
1389
|
+
/**
|
|
1390
|
+
* @napcat
|
|
1391
|
+
* 删除群公告
|
|
1392
|
+
*/
|
|
1393
|
+
_del_group_notice(params: WSSendParam['_del_group_notice']): Promise<{
|
|
1394
|
+
result: 0;
|
|
1395
|
+
errMsg: string;
|
|
1396
|
+
}>;
|
|
1397
|
+
/**
|
|
1398
|
+
* @napcat
|
|
1399
|
+
* 发送好友戳一戳
|
|
1400
|
+
*/
|
|
1401
|
+
friend_poke(params: WSSendParam['friend_poke']): Promise<null>;
|
|
1402
|
+
/**
|
|
1403
|
+
* @napcat
|
|
1404
|
+
* 发送群戳一戳
|
|
1405
|
+
*/
|
|
1406
|
+
group_poke(params: WSSendParam['group_poke']): Promise<null>;
|
|
1407
|
+
/**
|
|
1408
|
+
* @napcat
|
|
1409
|
+
* 获取数据包状态
|
|
1410
|
+
*/
|
|
1411
|
+
nc_get_packet_status(): Promise<undefined>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @napcat
|
|
1414
|
+
* 获取用户状态
|
|
1415
|
+
*/
|
|
1416
|
+
nc_get_user_status(params: WSSendParam['nc_get_user_status']): Promise<{
|
|
1417
|
+
status: number;
|
|
1418
|
+
ext_status: number;
|
|
1419
|
+
}>;
|
|
1420
|
+
/**
|
|
1421
|
+
* @napcat
|
|
1422
|
+
* 获取 rkey
|
|
1423
|
+
*/
|
|
1424
|
+
nc_get_rkey(): Promise<{
|
|
1425
|
+
rkey: string;
|
|
1426
|
+
ttl: string;
|
|
1427
|
+
time: number;
|
|
1428
|
+
type: number;
|
|
1429
|
+
}[]>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @napcat
|
|
1432
|
+
* 获取群禁言列表
|
|
1433
|
+
*/
|
|
1434
|
+
get_group_shut_list(params: WSSendParam['get_group_shut_list']): Promise<{
|
|
1435
|
+
uid: string;
|
|
1436
|
+
qid: string;
|
|
1437
|
+
uin: string;
|
|
1438
|
+
nick: string;
|
|
1439
|
+
remark: string;
|
|
1440
|
+
cardType: number;
|
|
1441
|
+
cardName: string;
|
|
1442
|
+
role: number;
|
|
1443
|
+
avatarPath: string;
|
|
1444
|
+
shutUpTime: number;
|
|
1445
|
+
isDelete: boolean;
|
|
1446
|
+
isSpecialConcerned: boolean;
|
|
1447
|
+
isSpecialShield: boolean;
|
|
1448
|
+
isRobot: boolean;
|
|
1449
|
+
groupHonor: {
|
|
1450
|
+
[key: string]: number;
|
|
1451
|
+
};
|
|
1452
|
+
memberRealLevel: number;
|
|
1453
|
+
memberLevel: number;
|
|
1454
|
+
globalGroupLevel: number;
|
|
1455
|
+
globalGroupPoint: number;
|
|
1456
|
+
memberTitleId: number;
|
|
1457
|
+
memberSpecialTitle: string;
|
|
1458
|
+
specialTitleExpireTime: string;
|
|
1459
|
+
userShowFlag: number;
|
|
1460
|
+
userShowFlagNew: number;
|
|
1461
|
+
richFlag: number;
|
|
1462
|
+
mssVipType: number;
|
|
1463
|
+
bigClubLevel: number;
|
|
1464
|
+
bigClubFlag: number;
|
|
1465
|
+
autoRemark: string;
|
|
1466
|
+
creditLevel: number;
|
|
1467
|
+
joinTime: number;
|
|
1468
|
+
lastSpeakTime: number;
|
|
1469
|
+
memberFlag: number;
|
|
1470
|
+
memberFlagExt: number;
|
|
1471
|
+
memberMobileFlag: number;
|
|
1472
|
+
memberFlagExt2: number;
|
|
1473
|
+
isSpecialShielded: boolean;
|
|
1474
|
+
cardNameId: number;
|
|
1475
|
+
}[]>;
|
|
1476
|
+
/**
|
|
1477
|
+
* @napcat
|
|
1478
|
+
* 移动群文件
|
|
1479
|
+
*/
|
|
1480
|
+
move_group_file(params: WSSendParam['move_group_file']): Promise<{
|
|
1481
|
+
ok: true;
|
|
1482
|
+
}>;
|
|
1483
|
+
/**
|
|
1484
|
+
* @napcat
|
|
1485
|
+
* 转移群文件
|
|
1486
|
+
*/
|
|
1487
|
+
trans_group_file(params: WSSendParam['trans_group_file']): Promise<{
|
|
1488
|
+
ok: true;
|
|
1489
|
+
}>;
|
|
1490
|
+
/**
|
|
1491
|
+
* @napcat
|
|
1492
|
+
* 重命名群文件
|
|
1493
|
+
*/
|
|
1494
|
+
rename_group_file(params: WSSendParam['rename_group_file']): Promise<{
|
|
1495
|
+
ok: true;
|
|
1496
|
+
}>;
|
|
1497
|
+
/**
|
|
1498
|
+
* @napcat
|
|
1499
|
+
* 获取频道列表
|
|
1500
|
+
*/
|
|
1501
|
+
/**
|
|
1502
|
+
* @napcat
|
|
1503
|
+
* 获取频道服务简介
|
|
1504
|
+
*/
|
|
1505
|
+
/**
|
|
1506
|
+
* @napcat
|
|
1507
|
+
* 获取群忽略通知
|
|
1508
|
+
*/
|
|
1509
|
+
get_group_ignored_notifies(params: WSSendParam['get_group_ignored_notifies']): Promise<{
|
|
1510
|
+
invited_requests: {
|
|
1511
|
+
request_id: number;
|
|
1512
|
+
invitor_uin: number;
|
|
1513
|
+
invitor_nick: string;
|
|
1514
|
+
group_id: number;
|
|
1515
|
+
message: string;
|
|
1516
|
+
group_name: string;
|
|
1517
|
+
checked: boolean;
|
|
1518
|
+
actor: number;
|
|
1519
|
+
requester_nick: string;
|
|
1520
|
+
}[];
|
|
1521
|
+
join_requests: {
|
|
1522
|
+
request_id: number;
|
|
1523
|
+
invitor_uin: number;
|
|
1524
|
+
invitor_nick: string;
|
|
1525
|
+
group_id: number;
|
|
1526
|
+
message: string;
|
|
1527
|
+
group_name: string;
|
|
1528
|
+
checked: boolean;
|
|
1529
|
+
actor: number;
|
|
1530
|
+
requester_nick: string;
|
|
1531
|
+
}[];
|
|
1532
|
+
}>;
|
|
1533
|
+
/**
|
|
1534
|
+
* @napcat
|
|
1535
|
+
* 发送群签到
|
|
1536
|
+
*/
|
|
1537
|
+
set_group_sign(params: WSSendParam['set_group_sign']): Promise<null>;
|
|
1538
|
+
/**
|
|
1539
|
+
* @napcat
|
|
1540
|
+
* 发送数据包
|
|
1541
|
+
*/
|
|
1542
|
+
send_packet(params: WSSendParam['send_packet']): Promise<string | undefined>;
|
|
1543
|
+
/**
|
|
1544
|
+
* @napcat
|
|
1545
|
+
* 获取小程序卡片
|
|
1546
|
+
*/
|
|
1547
|
+
get_mini_app_ark(params: WSSendParam['get_mini_app_ark']): Promise<{
|
|
1548
|
+
data: {
|
|
1549
|
+
ver: string;
|
|
1550
|
+
prompt: string;
|
|
1551
|
+
config: {
|
|
1552
|
+
type: string;
|
|
1553
|
+
width: number;
|
|
1554
|
+
height: number;
|
|
1555
|
+
forward: number;
|
|
1556
|
+
autoSize: number;
|
|
1557
|
+
ctime: number;
|
|
1558
|
+
token: string;
|
|
1559
|
+
};
|
|
1560
|
+
app: string;
|
|
1561
|
+
view: string;
|
|
1562
|
+
meta: {
|
|
1563
|
+
detail_1: {
|
|
1564
|
+
appid: string;
|
|
1565
|
+
appType: number;
|
|
1566
|
+
title: string;
|
|
1567
|
+
desc: string;
|
|
1568
|
+
icon: string;
|
|
1569
|
+
preview: string;
|
|
1570
|
+
url: string;
|
|
1571
|
+
scene: number;
|
|
1572
|
+
host: {
|
|
1573
|
+
uin: number;
|
|
1574
|
+
nick: string;
|
|
1575
|
+
};
|
|
1576
|
+
shareTemplateId: string;
|
|
1577
|
+
shareTemplateData: {
|
|
1578
|
+
[key: string]: number;
|
|
1579
|
+
};
|
|
1580
|
+
showLittleTail: string;
|
|
1581
|
+
gamePoints: string;
|
|
1582
|
+
gamePointsUrl: string;
|
|
1583
|
+
shareOrigin: number;
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
miniappShareOrigin: number;
|
|
1587
|
+
miniappOpenRefer: string;
|
|
1588
|
+
} | {
|
|
1589
|
+
appName: string;
|
|
1590
|
+
appView: string;
|
|
1591
|
+
ver: string;
|
|
1592
|
+
desc: string;
|
|
1593
|
+
prompt: string;
|
|
1594
|
+
metaData: {
|
|
1595
|
+
detail_1: {
|
|
1596
|
+
appid: string;
|
|
1597
|
+
appType: number;
|
|
1598
|
+
title: string;
|
|
1599
|
+
desc: string;
|
|
1600
|
+
icon: string;
|
|
1601
|
+
preview: string;
|
|
1602
|
+
url: string;
|
|
1603
|
+
scene: number;
|
|
1604
|
+
host: {
|
|
1605
|
+
uin: number;
|
|
1606
|
+
nick: string;
|
|
1607
|
+
};
|
|
1608
|
+
shareTemplateId: string;
|
|
1609
|
+
shareTemplateData: {
|
|
1610
|
+
[key: string]: number;
|
|
1611
|
+
};
|
|
1612
|
+
showLittleTail: string;
|
|
1613
|
+
gamePoints: string;
|
|
1614
|
+
gamePointsUrl: string;
|
|
1615
|
+
shareOrigin: number;
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
config: {
|
|
1619
|
+
type: string;
|
|
1620
|
+
width: number;
|
|
1621
|
+
height: number;
|
|
1622
|
+
forward: number;
|
|
1623
|
+
autoSize: number;
|
|
1624
|
+
ctime: number;
|
|
1625
|
+
token: string;
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
}>;
|
|
1629
|
+
/**
|
|
1630
|
+
* @napcat
|
|
1631
|
+
* 获取 AI 语音
|
|
1632
|
+
*/
|
|
1633
|
+
get_ai_record(params: WSSendParam['get_ai_record']): Promise<string>;
|
|
1634
|
+
/**
|
|
1635
|
+
* @napcat
|
|
1636
|
+
* 获取 AI 角色列表
|
|
1637
|
+
*/
|
|
1638
|
+
get_ai_characters(params: WSSendParam['get_ai_characters']): Promise<{
|
|
1639
|
+
type: string;
|
|
1640
|
+
characters: {
|
|
1641
|
+
character_id: string;
|
|
1642
|
+
character_name: string;
|
|
1643
|
+
preview_url: string;
|
|
1644
|
+
}[];
|
|
1645
|
+
}[]>;
|
|
1646
|
+
/**
|
|
1647
|
+
* @napcat
|
|
1648
|
+
* 发送群 AI 记录
|
|
1649
|
+
*/
|
|
1650
|
+
send_group_ai_record(params: WSSendParam['send_group_ai_record']): Promise<{
|
|
1651
|
+
message_id: 0;
|
|
1652
|
+
}>;
|
|
1653
|
+
/**
|
|
1654
|
+
* @napcat
|
|
1655
|
+
* 获取客户端密钥
|
|
1656
|
+
*/
|
|
1657
|
+
get_clientkey(): Promise<{
|
|
1658
|
+
clientkey: string;
|
|
1659
|
+
}>;
|
|
1660
|
+
/**
|
|
1661
|
+
* @napcat
|
|
1662
|
+
* 发送戳一戳
|
|
1663
|
+
*/
|
|
1664
|
+
send_poke(params: WSSendParam['send_poke']): Promise<null>;
|
|
1665
|
+
/**
|
|
1666
|
+
* @napcat
|
|
1667
|
+
* 设置群踢人
|
|
1668
|
+
*/
|
|
1669
|
+
set_group_kick_members(params: WSSendParam['set_group_kick_members']): Promise<null>;
|
|
1670
|
+
/**
|
|
1671
|
+
* @napcat
|
|
1672
|
+
* 设置群机器人添加选项
|
|
1673
|
+
*/
|
|
1674
|
+
set_group_robot_add_option(params: WSSendParam['set_group_robot_add_option']): Promise<null>;
|
|
1675
|
+
/**
|
|
1676
|
+
* @napcat
|
|
1677
|
+
* 设置群添加选项
|
|
1678
|
+
*/
|
|
1679
|
+
set_group_add_option(params: WSSendParam['set_group_add_option']): Promise<null>;
|
|
1680
|
+
/**
|
|
1681
|
+
* @napcat
|
|
1682
|
+
* 设置群搜索选项
|
|
1683
|
+
*/
|
|
1684
|
+
set_group_search(params: WSSendParam['set_group_search']): Promise<null>;
|
|
1685
|
+
/**
|
|
1686
|
+
* @napcat
|
|
1687
|
+
* 获取可疑好友添加请求
|
|
1688
|
+
*/
|
|
1689
|
+
get_doubt_friends_add_request(params?: WSSendParam['get_doubt_friends_add_request']): Promise<{
|
|
1690
|
+
flag: string;
|
|
1691
|
+
uin: string;
|
|
1692
|
+
nick: string;
|
|
1693
|
+
source: string;
|
|
1694
|
+
reason: string;
|
|
1695
|
+
msg: string;
|
|
1696
|
+
group_code: string;
|
|
1697
|
+
time: string;
|
|
1698
|
+
type: string;
|
|
1699
|
+
}[]>;
|
|
1700
|
+
/**
|
|
1701
|
+
* @napcat
|
|
1702
|
+
* 设置可疑好友添加请求
|
|
1703
|
+
*/
|
|
1704
|
+
set_doubt_friends_add_request(params: WSSendParam['set_doubt_friends_add_request']): Promise<null>;
|
|
1705
|
+
/**
|
|
1706
|
+
* @napcat
|
|
1707
|
+
* 获取 RKey
|
|
1708
|
+
*/
|
|
1709
|
+
get_rkey(): Promise<{
|
|
1710
|
+
type: "private" | "group";
|
|
1711
|
+
rkey: string;
|
|
1712
|
+
created_at: number;
|
|
1713
|
+
ttl: string;
|
|
1714
|
+
}[]>;
|
|
1715
|
+
/**
|
|
1716
|
+
* @napcat
|
|
1717
|
+
* 获取 RKey 服务器
|
|
1718
|
+
*/
|
|
1719
|
+
get_rkey_server(): Promise<{
|
|
1720
|
+
private_rkey: string;
|
|
1721
|
+
group_rkey: string;
|
|
1722
|
+
expired_time: number;
|
|
1723
|
+
name: string;
|
|
1724
|
+
}>;
|
|
1725
|
+
/**
|
|
1726
|
+
* @napcat
|
|
1727
|
+
* 设置群备注
|
|
1728
|
+
*/
|
|
1729
|
+
set_group_remark(params: WSSendParam['set_group_remark']): Promise<null>;
|
|
1730
|
+
/**
|
|
1731
|
+
* @napcat
|
|
1732
|
+
* 获取私聊文件链接
|
|
1733
|
+
*/
|
|
1734
|
+
get_private_file_url(params: WSSendParam['get_private_file_url']): Promise<{
|
|
1735
|
+
url: string;
|
|
1736
|
+
}>;
|
|
1737
|
+
/**
|
|
1738
|
+
* @napcat
|
|
1739
|
+
* 点击消息中的按钮
|
|
1740
|
+
*/
|
|
1741
|
+
click_inline_keyboard_button(params: WSSendParam['click_inline_keyboard_button']): Promise<{
|
|
1742
|
+
result: 0;
|
|
1743
|
+
errMsg: string;
|
|
1744
|
+
status: number;
|
|
1745
|
+
promptText: string;
|
|
1746
|
+
promptType: number;
|
|
1747
|
+
promptIcon: number;
|
|
1748
|
+
}>;
|
|
1749
|
+
/**
|
|
1750
|
+
* @napcat
|
|
1751
|
+
* 设置群待办
|
|
1752
|
+
*/
|
|
1753
|
+
set_group_todo(params: WSSendParam['set_group_todo']): Promise<null>;
|
|
1754
|
+
/**
|
|
1755
|
+
* @napcat
|
|
1756
|
+
* 获取群相册列表
|
|
1757
|
+
*/
|
|
1758
|
+
get_qun_album_list(params: WSSendParam['get_qun_album_list']): Promise<{
|
|
1759
|
+
name: string;
|
|
1760
|
+
album_id: number;
|
|
1761
|
+
}[]>;
|
|
1762
|
+
/**
|
|
1763
|
+
* @napcat
|
|
1764
|
+
* 上传图片到群相册
|
|
1765
|
+
*/
|
|
1766
|
+
upload_image_to_qun_album(params: WSSendParam['upload_image_to_qun_album']): Promise<null>;
|
|
1767
|
+
/**
|
|
1768
|
+
* @napcat
|
|
1769
|
+
* 获取群相册媒体列表
|
|
1770
|
+
*/
|
|
1771
|
+
get_group_album_media_list(params: WSSendParam['get_group_album_media_list']): Promise<{
|
|
1772
|
+
seq: number;
|
|
1773
|
+
result: number;
|
|
1774
|
+
errMs: string;
|
|
1775
|
+
trace_id: string;
|
|
1776
|
+
request_time_line: unknown;
|
|
1777
|
+
}>;
|
|
1778
|
+
/**
|
|
1779
|
+
* @napcat
|
|
1780
|
+
* 评论群相册
|
|
1781
|
+
*/
|
|
1782
|
+
do_group_album_comment(params: WSSendParam['do_group_album_comment']): Promise<null>;
|
|
1783
|
+
/**
|
|
1784
|
+
* @napcat
|
|
1785
|
+
* 点赞群相册媒体
|
|
1786
|
+
*/
|
|
1787
|
+
set_group_album_media_like(params: WSSendParam['set_group_album_media_like']): Promise<null>;
|
|
1788
|
+
/**
|
|
1789
|
+
* @napcat
|
|
1790
|
+
* 删除群相册媒体
|
|
1791
|
+
*/
|
|
1792
|
+
del_group_album_media(params: WSSendParam['del_group_album_media']): Promise<null>;
|
|
1793
|
+
}
|