@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,1011 @@
|
|
|
1
|
+
import { NCWebsocketBase } from './NCWebsocketBase.js';
|
|
2
|
+
export class NCWebsocket extends NCWebsocketBase {
|
|
3
|
+
/**
|
|
4
|
+
* @onebot11
|
|
5
|
+
* 发送私聊消息
|
|
6
|
+
*/
|
|
7
|
+
send_private_msg(params) {
|
|
8
|
+
return this.send('send_private_msg', params);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @onebot11
|
|
12
|
+
* 发送群聊信息
|
|
13
|
+
*/
|
|
14
|
+
send_group_msg(params) {
|
|
15
|
+
return this.send('send_group_msg', params);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @onebot11
|
|
19
|
+
* 发送信息
|
|
20
|
+
*/
|
|
21
|
+
send_msg(params) {
|
|
22
|
+
return this.send('send_msg', params);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @onebot11
|
|
26
|
+
* 撤回信息
|
|
27
|
+
*/
|
|
28
|
+
delete_msg(params) {
|
|
29
|
+
return this.send('delete_msg', params);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @onebot11
|
|
33
|
+
* 获取信息
|
|
34
|
+
*/
|
|
35
|
+
get_msg(params) {
|
|
36
|
+
return this.send('get_msg', params);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @onebot11
|
|
40
|
+
* 获取合并转发信息
|
|
41
|
+
*/
|
|
42
|
+
get_forward_msg(params) {
|
|
43
|
+
return this.send('get_forward_msg', params);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @onebot11
|
|
47
|
+
* 点赞
|
|
48
|
+
*/
|
|
49
|
+
send_like(params) {
|
|
50
|
+
return this.send('send_like', params);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @onebot11
|
|
54
|
+
* 群组踢人
|
|
55
|
+
*/
|
|
56
|
+
set_group_kick(params) {
|
|
57
|
+
return this.send('set_group_kick', params);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @onebot11
|
|
61
|
+
* 群组禁言
|
|
62
|
+
*/
|
|
63
|
+
set_group_ban(params) {
|
|
64
|
+
return this.send('set_group_ban', params);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @onebot11
|
|
68
|
+
* 群组匿名用户禁言
|
|
69
|
+
*/
|
|
70
|
+
// set_group_anonymous_ban(params: WSSendParam['set_group_anonymous_ban']) {
|
|
71
|
+
// return this.send('set_group_anonymous_ban', params)
|
|
72
|
+
// }
|
|
73
|
+
/**
|
|
74
|
+
* @onebot11
|
|
75
|
+
* 群组全员禁言
|
|
76
|
+
*/
|
|
77
|
+
set_group_whole_ban(params) {
|
|
78
|
+
return this.send('set_group_whole_ban', params);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @onebot11
|
|
82
|
+
* 群组设置管理员
|
|
83
|
+
*/
|
|
84
|
+
set_group_admin(params) {
|
|
85
|
+
return this.send('set_group_admin', params);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @onebot11
|
|
89
|
+
* 群组匿名
|
|
90
|
+
*/
|
|
91
|
+
// set_group_anonymous(params: WSSendParam['set_group_anonymous']) {
|
|
92
|
+
// return this.send('set_group_anonymous', params)
|
|
93
|
+
// }
|
|
94
|
+
/**
|
|
95
|
+
* @onebot11
|
|
96
|
+
* 设置群名片
|
|
97
|
+
*/
|
|
98
|
+
set_group_card(params) {
|
|
99
|
+
return this.send('set_group_card', params);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* @onebot11
|
|
103
|
+
* 设置群名
|
|
104
|
+
*/
|
|
105
|
+
set_group_name(params) {
|
|
106
|
+
return this.send('set_group_name', params);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @onebot11
|
|
110
|
+
* 退出群组
|
|
111
|
+
*/
|
|
112
|
+
set_group_leave(params) {
|
|
113
|
+
return this.send('set_group_leave', params);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @onebot11
|
|
117
|
+
* 设置群聊特殊头衔
|
|
118
|
+
*/
|
|
119
|
+
set_group_special_title(params) {
|
|
120
|
+
return this.send('set_group_special_title', params);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @onebot11
|
|
124
|
+
* 设置好友添加请求
|
|
125
|
+
*/
|
|
126
|
+
set_friend_add_request(params) {
|
|
127
|
+
return this.send('set_friend_add_request', params);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* @onebot11
|
|
131
|
+
* 设置好友备注
|
|
132
|
+
*/
|
|
133
|
+
set_friend_remark(params) {
|
|
134
|
+
return this.send('set_friend_remark', params);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @onebot11
|
|
138
|
+
* 设置群组添加请求
|
|
139
|
+
*/
|
|
140
|
+
set_group_add_request(params) {
|
|
141
|
+
return this.send('set_group_add_request', params);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @onebot11
|
|
145
|
+
* 获取登录号信息
|
|
146
|
+
*/
|
|
147
|
+
get_login_info() {
|
|
148
|
+
return this.send('get_login_info', {});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @onebot11
|
|
152
|
+
* 获取非好友信息
|
|
153
|
+
*/
|
|
154
|
+
get_stranger_info(params) {
|
|
155
|
+
return this.send('get_stranger_info', params);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @onebot11
|
|
159
|
+
* 获取好友列表
|
|
160
|
+
*/
|
|
161
|
+
get_friend_list() {
|
|
162
|
+
return this.send('get_friend_list', {});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @onebot11
|
|
166
|
+
* 获取群信息
|
|
167
|
+
*/
|
|
168
|
+
get_group_info(params) {
|
|
169
|
+
return this.send('get_group_info', params);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @onebot11
|
|
173
|
+
* 获取群列表
|
|
174
|
+
*/
|
|
175
|
+
get_group_list(params) {
|
|
176
|
+
return this.send('get_group_list', params ?? {});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @onebot11
|
|
180
|
+
* 获取群成员信息
|
|
181
|
+
*/
|
|
182
|
+
get_group_member_info(params) {
|
|
183
|
+
return this.send('get_group_member_info', params);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* @onebot11
|
|
187
|
+
* 获取群成员列表
|
|
188
|
+
*/
|
|
189
|
+
get_group_member_list(params) {
|
|
190
|
+
return this.send('get_group_member_list', params);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @onebot11
|
|
194
|
+
* 获取群荣誉信息
|
|
195
|
+
*/
|
|
196
|
+
get_group_honor_info(params) {
|
|
197
|
+
return this.send('get_group_honor_info', params);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @onebot11
|
|
201
|
+
* 获取Cookies
|
|
202
|
+
*/
|
|
203
|
+
get_cookies(params) {
|
|
204
|
+
return this.send('get_cookies', params);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @onebot11
|
|
208
|
+
* 获取CsrfToken
|
|
209
|
+
*/
|
|
210
|
+
get_csrf_token() {
|
|
211
|
+
return this.send('get_csrf_token', {});
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* @onebot11
|
|
215
|
+
* 获取Credentials
|
|
216
|
+
*/
|
|
217
|
+
get_credentials() {
|
|
218
|
+
return this.send('get_credentials', {});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @onebot11
|
|
222
|
+
* 获取语音
|
|
223
|
+
*/
|
|
224
|
+
get_record(params) {
|
|
225
|
+
return this.send('get_record', params);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @onebot11
|
|
229
|
+
* 获取图片
|
|
230
|
+
*/
|
|
231
|
+
get_image(params) {
|
|
232
|
+
return this.send('get_image', params);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @onebot11
|
|
236
|
+
* 能否发送图片
|
|
237
|
+
*/
|
|
238
|
+
can_send_image() {
|
|
239
|
+
return this.send('can_send_image', {});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @onebot11
|
|
243
|
+
* 能否发送语音
|
|
244
|
+
*/
|
|
245
|
+
can_send_record() {
|
|
246
|
+
return this.send('can_send_record', {});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @onebot11
|
|
250
|
+
* 获取运行状态
|
|
251
|
+
*/
|
|
252
|
+
get_status() {
|
|
253
|
+
return this.send('get_status', {});
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @onebot11
|
|
257
|
+
* 获取版本信息
|
|
258
|
+
*/
|
|
259
|
+
get_version_info() {
|
|
260
|
+
return this.send('get_version_info', {});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @onebot11
|
|
264
|
+
* 重启
|
|
265
|
+
*/
|
|
266
|
+
// set_restart() {
|
|
267
|
+
// return this.send('set_restart', {})
|
|
268
|
+
// }
|
|
269
|
+
/**
|
|
270
|
+
* @onebot11
|
|
271
|
+
* 清理缓存
|
|
272
|
+
*/
|
|
273
|
+
clean_cache() {
|
|
274
|
+
return this.send('clean_cache', {});
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @onebot11
|
|
278
|
+
* 退出机器人
|
|
279
|
+
*/
|
|
280
|
+
bot_exit() {
|
|
281
|
+
return this.send('bot_exit', {});
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* @gocqhttp
|
|
285
|
+
* 设置QQ资料
|
|
286
|
+
*/
|
|
287
|
+
set_qq_profile(params) {
|
|
288
|
+
return this.send('set_qq_profile', params);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* @gocqhttp
|
|
292
|
+
* 获取企点QQ资料
|
|
293
|
+
*/
|
|
294
|
+
// qidian_get_account_info(params: WSSendParam['qidian_get_account_info']) {
|
|
295
|
+
// return this.send('qidian_get_account_info', params)
|
|
296
|
+
// }
|
|
297
|
+
/**
|
|
298
|
+
* @gocqhttp
|
|
299
|
+
* 获取型号列表
|
|
300
|
+
*/
|
|
301
|
+
_get_model_show(params) {
|
|
302
|
+
return this.send('_get_model_show', params);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* @gocqhttp
|
|
306
|
+
* 设置型号
|
|
307
|
+
*/
|
|
308
|
+
// _set_model_show(params: WSSendParam['_set_model_show']) {
|
|
309
|
+
// return this.send('_set_model_show', params)
|
|
310
|
+
// }
|
|
311
|
+
/**
|
|
312
|
+
* @gocqhttp
|
|
313
|
+
* 获取登陆的客户端
|
|
314
|
+
*/
|
|
315
|
+
// get_online_clients() {
|
|
316
|
+
// return this.send('get_online_clients', {})
|
|
317
|
+
// }
|
|
318
|
+
/**
|
|
319
|
+
* @gocqhttp
|
|
320
|
+
* 获取单向好友列表
|
|
321
|
+
*/
|
|
322
|
+
get_unidirectional_friend_list() {
|
|
323
|
+
return this.send('get_unidirectional_friend_list', {});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @gocqhttp
|
|
327
|
+
* 删除好友
|
|
328
|
+
*/
|
|
329
|
+
delete_friend(params) {
|
|
330
|
+
return this.send('delete_friend', params);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @gocqhttp
|
|
334
|
+
* 删除单向好友
|
|
335
|
+
*/
|
|
336
|
+
// delete_unidirectional_friend(params: WSSendParam['delete_unidirectional_friend']) {
|
|
337
|
+
// return this.send('delete_unidirectional_friend', params)
|
|
338
|
+
// }
|
|
339
|
+
/**
|
|
340
|
+
* @gocqhttp
|
|
341
|
+
* 标记消息已读
|
|
342
|
+
*/
|
|
343
|
+
mark_msg_as_read(params) {
|
|
344
|
+
return this.send('mark_msg_as_read', params);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @gocqhttp
|
|
348
|
+
* 发送群合并转发
|
|
349
|
+
*/
|
|
350
|
+
send_group_forward_msg(params) {
|
|
351
|
+
return this.send('send_group_forward_msg', params);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @gocqhttp
|
|
355
|
+
* 发送私聊合并转发
|
|
356
|
+
*/
|
|
357
|
+
send_private_forward_msg(params) {
|
|
358
|
+
return this.send('send_private_forward_msg', params);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @gocqhttp
|
|
362
|
+
* 获取群聊历史消息
|
|
363
|
+
*/
|
|
364
|
+
get_group_msg_history(params) {
|
|
365
|
+
return this.send('get_group_msg_history', params);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @gocqhttp
|
|
369
|
+
* OCR图片
|
|
370
|
+
*/
|
|
371
|
+
ocr_image(params) {
|
|
372
|
+
return this.send('ocr_image', params);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @gocqhttp
|
|
376
|
+
* 获取群系统消息
|
|
377
|
+
*/
|
|
378
|
+
get_group_system_msg(params) {
|
|
379
|
+
return this.send('get_group_system_msg', params ?? {});
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @gocqhttp
|
|
383
|
+
* 获取群精华列表
|
|
384
|
+
*/
|
|
385
|
+
get_essence_msg_list(params) {
|
|
386
|
+
return this.send('get_essence_msg_list', params);
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @gocqhttp
|
|
390
|
+
* 获取@全体成员剩余次数
|
|
391
|
+
*/
|
|
392
|
+
get_group_at_all_remain(params) {
|
|
393
|
+
return this.send('get_group_at_all_remain', params);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @gocqhttp
|
|
397
|
+
* 设置群头像
|
|
398
|
+
*/
|
|
399
|
+
set_group_portrait(params) {
|
|
400
|
+
return this.send('set_group_portrait', params);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @gocqhttp
|
|
404
|
+
* 设置精华消息
|
|
405
|
+
*/
|
|
406
|
+
set_essence_msg(params) {
|
|
407
|
+
return this.send('set_essence_msg', params);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @gocqhttp
|
|
411
|
+
* 删除精华消息
|
|
412
|
+
*/
|
|
413
|
+
delete_essence_msg(params) {
|
|
414
|
+
return this.send('delete_essence_msg', params);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @gocqhttp
|
|
418
|
+
* 设置群公告
|
|
419
|
+
*/
|
|
420
|
+
_send_group_notice(params) {
|
|
421
|
+
return this.send('_send_group_notice', params);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @gocqhttp
|
|
425
|
+
* 获取群公告
|
|
426
|
+
*/
|
|
427
|
+
_get_group_notice(params) {
|
|
428
|
+
return this.send('_get_group_notice', params);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @gocqhttp
|
|
432
|
+
* 上传群文件
|
|
433
|
+
*/
|
|
434
|
+
upload_group_file(params) {
|
|
435
|
+
return this.send('upload_group_file', params);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @gocqhttp
|
|
439
|
+
* 删除群文件
|
|
440
|
+
*/
|
|
441
|
+
delete_group_file(params) {
|
|
442
|
+
return this.send('delete_group_file', params);
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @gocqhttp
|
|
446
|
+
* 创建群文件文件夹
|
|
447
|
+
*/
|
|
448
|
+
create_group_file_folder(params) {
|
|
449
|
+
return this.send('create_group_file_folder', params);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @gocqhttp
|
|
453
|
+
* 删除群文件文件夹
|
|
454
|
+
*/
|
|
455
|
+
delete_group_folder(params) {
|
|
456
|
+
return this.send('delete_group_folder', params);
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @gocqhttp
|
|
460
|
+
* 获取群文件系统信息
|
|
461
|
+
*/
|
|
462
|
+
get_group_file_system_info(params) {
|
|
463
|
+
return this.send('get_group_file_system_info', params);
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* @gocqhttp
|
|
467
|
+
* 获取群文件树
|
|
468
|
+
*/
|
|
469
|
+
get_group_root_files(params) {
|
|
470
|
+
return this.send('get_group_root_files', params);
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* @gocqhttp
|
|
474
|
+
* 根据文件夹获取群文件
|
|
475
|
+
*/
|
|
476
|
+
get_group_files_by_folder(params) {
|
|
477
|
+
return this.send('get_group_files_by_folder', params);
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @gocqhttp
|
|
481
|
+
* 获取群文件链接
|
|
482
|
+
*/
|
|
483
|
+
get_group_file_url(params) {
|
|
484
|
+
return this.send('get_group_file_url', params);
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @gocqhttp
|
|
488
|
+
* 发送私聊文件
|
|
489
|
+
*/
|
|
490
|
+
upload_private_file(params) {
|
|
491
|
+
return this.send('upload_private_file', params);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @gocqhttp
|
|
495
|
+
* 重置事件过滤器
|
|
496
|
+
*/
|
|
497
|
+
// reload_event_filter() {
|
|
498
|
+
// return this.send('reload_event_filter', {})
|
|
499
|
+
// }
|
|
500
|
+
/**
|
|
501
|
+
* @gocqhttp
|
|
502
|
+
* 下载文件
|
|
503
|
+
*/
|
|
504
|
+
download_file(params) {
|
|
505
|
+
return this.send('download_file', params);
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* @gocqhttp
|
|
509
|
+
* 检查链接安全性
|
|
510
|
+
*/
|
|
511
|
+
// check_url_safely(params: WSSendParam['check_url_safely']) {
|
|
512
|
+
// return this.send('check_url_safely', params)
|
|
513
|
+
// }
|
|
514
|
+
/**
|
|
515
|
+
* @gocqhttp
|
|
516
|
+
* 获取中文分词
|
|
517
|
+
*/
|
|
518
|
+
// '.get_word_slices' = (params: WSSendParam['.get_word_slices']) => {
|
|
519
|
+
// return this.send('.get_word_slices', params)
|
|
520
|
+
// }
|
|
521
|
+
/**
|
|
522
|
+
* @gocqhttp
|
|
523
|
+
* 快捷操作
|
|
524
|
+
*/
|
|
525
|
+
'.handle_quick_operation' = (params) => {
|
|
526
|
+
return this.send('.handle_quick_operation', params);
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* @napcat
|
|
530
|
+
* 留空占位符
|
|
531
|
+
*/
|
|
532
|
+
// unknown() {
|
|
533
|
+
// return this.send('unknown', {})
|
|
534
|
+
// }
|
|
535
|
+
/**
|
|
536
|
+
* @napcat
|
|
537
|
+
* 设置自定义在线状态
|
|
538
|
+
*/
|
|
539
|
+
set_diy_online_status(params) {
|
|
540
|
+
return this.send('set_diy_online_status', params);
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* @napcat
|
|
544
|
+
* 获取分享卡片JSON
|
|
545
|
+
*/
|
|
546
|
+
ArkSharePeer(params) {
|
|
547
|
+
return this.send('ArkSharePeer', params);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* @napcat
|
|
551
|
+
* 获取分享卡片JSON
|
|
552
|
+
*/
|
|
553
|
+
ArkShareGroup(params) {
|
|
554
|
+
return this.send('ArkShareGroup', params);
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* @napcat
|
|
558
|
+
* 正常重启
|
|
559
|
+
*/
|
|
560
|
+
// reboot_normal(params: WSSendParam['reboot_normal']) {
|
|
561
|
+
// return this.send('reboot_normal', params)
|
|
562
|
+
// }
|
|
563
|
+
/**
|
|
564
|
+
* @napcat
|
|
565
|
+
* 获取机器人ID范围
|
|
566
|
+
*/
|
|
567
|
+
get_robot_uin_range() {
|
|
568
|
+
return this.send('get_robot_uin_range', {});
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* @napcat
|
|
572
|
+
* 设置在线状态
|
|
573
|
+
*/
|
|
574
|
+
set_online_status(params) {
|
|
575
|
+
return this.send('set_online_status', params);
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @napcat
|
|
579
|
+
* 获取分类好友列表
|
|
580
|
+
*/
|
|
581
|
+
get_friends_with_category() {
|
|
582
|
+
return this.send('get_friends_with_category', {});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* @napcat
|
|
586
|
+
* 设置QQ头像
|
|
587
|
+
*/
|
|
588
|
+
set_qq_avatar(params) {
|
|
589
|
+
return this.send('set_qq_avatar', params);
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @napcat
|
|
593
|
+
* 获取文件
|
|
594
|
+
*/
|
|
595
|
+
get_file(params) {
|
|
596
|
+
return this.send('get_file', params);
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* @napcat
|
|
600
|
+
* 转发消息给好友
|
|
601
|
+
*/
|
|
602
|
+
forward_friend_single_msg(params) {
|
|
603
|
+
return this.send('forward_friend_single_msg', params);
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* @napcat
|
|
607
|
+
* 转发消息给群
|
|
608
|
+
*/
|
|
609
|
+
forward_group_single_msg(params) {
|
|
610
|
+
return this.send('forward_group_single_msg', params);
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* @napcat
|
|
614
|
+
* 中英文翻译
|
|
615
|
+
*/
|
|
616
|
+
translate_en2zh(params) {
|
|
617
|
+
return this.send('translate_en2zh', params);
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @napcat
|
|
621
|
+
* 设置表情回复
|
|
622
|
+
*/
|
|
623
|
+
set_msg_emoji_like(params) {
|
|
624
|
+
return this.send('set_msg_emoji_like', params);
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* @napcat
|
|
628
|
+
* 发送合并转发
|
|
629
|
+
*/
|
|
630
|
+
send_forward_msg(params) {
|
|
631
|
+
return this.send('send_forward_msg', params);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @napcat
|
|
635
|
+
* 标记私聊已读
|
|
636
|
+
*/
|
|
637
|
+
mark_private_msg_as_read(params) {
|
|
638
|
+
return this.send('mark_private_msg_as_read', params);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @napcat
|
|
642
|
+
* 标记群聊已读
|
|
643
|
+
*/
|
|
644
|
+
mark_group_msg_as_read(params) {
|
|
645
|
+
return this.send('mark_group_msg_as_read', params);
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @napcat
|
|
649
|
+
* 获取私聊历史记录
|
|
650
|
+
*/
|
|
651
|
+
get_friend_msg_history(params) {
|
|
652
|
+
return this.send('get_friend_msg_history', params);
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @napcat
|
|
656
|
+
* 创建收藏
|
|
657
|
+
*/
|
|
658
|
+
create_collection(params) {
|
|
659
|
+
return this.send('create_collection', params);
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* @napcat
|
|
663
|
+
* 获取收藏
|
|
664
|
+
*/
|
|
665
|
+
get_collection_list(params) {
|
|
666
|
+
return this.send('get_collection_list', params);
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* @napcat
|
|
670
|
+
* 设置签名
|
|
671
|
+
*/
|
|
672
|
+
set_self_longnick(params) {
|
|
673
|
+
return this.send('set_self_longnick', params);
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* @napcat
|
|
677
|
+
* 获取最近联系
|
|
678
|
+
*/
|
|
679
|
+
get_recent_contact(params) {
|
|
680
|
+
return this.send('get_recent_contact', params ?? {});
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* @napcat
|
|
684
|
+
* 标记所有为已读
|
|
685
|
+
*/
|
|
686
|
+
_mark_all_as_read() {
|
|
687
|
+
return this.send('_mark_all_as_read', {});
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* @napcat
|
|
691
|
+
* 获取个人资料
|
|
692
|
+
*/
|
|
693
|
+
get_profile_like() {
|
|
694
|
+
return this.send('get_profile_like', {});
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @napcat
|
|
698
|
+
* 获取收藏表情
|
|
699
|
+
*/
|
|
700
|
+
fetch_custom_face(params) {
|
|
701
|
+
return this.send('fetch_custom_face', params ?? {});
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* @napcat
|
|
705
|
+
* 获取表情回复
|
|
706
|
+
*/
|
|
707
|
+
fetch_emoji_like(params) {
|
|
708
|
+
return this.send('fetch_emoji_like', params);
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* @napcat
|
|
712
|
+
* 设置输入状态
|
|
713
|
+
*/
|
|
714
|
+
set_input_status(params) {
|
|
715
|
+
return this.send('set_input_status', params);
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* @napcat
|
|
719
|
+
* 获取群信息扩展
|
|
720
|
+
*/
|
|
721
|
+
get_group_info_ex(params) {
|
|
722
|
+
return this.send('get_group_info_ex', params);
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* @napcat
|
|
726
|
+
* 获取群详细信息
|
|
727
|
+
*/
|
|
728
|
+
get_group_detail_info(params) {
|
|
729
|
+
return this.send('get_group_detail_info', params);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @napcat
|
|
733
|
+
* 获取群忽略添加请求
|
|
734
|
+
*/
|
|
735
|
+
get_group_ignore_add_request(params) {
|
|
736
|
+
return this.send('get_group_ignore_add_request', params);
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* @napcat
|
|
740
|
+
* 删除群公告
|
|
741
|
+
*/
|
|
742
|
+
_del_group_notice(params) {
|
|
743
|
+
return this.send('_del_group_notice', params);
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* @napcat
|
|
747
|
+
* 发送好友戳一戳
|
|
748
|
+
*/
|
|
749
|
+
friend_poke(params) {
|
|
750
|
+
return this.send('friend_poke', params);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @napcat
|
|
754
|
+
* 发送群戳一戳
|
|
755
|
+
*/
|
|
756
|
+
group_poke(params) {
|
|
757
|
+
return this.send('group_poke', params);
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @napcat
|
|
761
|
+
* 获取数据包状态
|
|
762
|
+
*/
|
|
763
|
+
nc_get_packet_status() {
|
|
764
|
+
return this.send('nc_get_packet_status', {});
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* @napcat
|
|
768
|
+
* 获取用户状态
|
|
769
|
+
*/
|
|
770
|
+
nc_get_user_status(params) {
|
|
771
|
+
return this.send('nc_get_user_status', params);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* @napcat
|
|
775
|
+
* 获取 rkey
|
|
776
|
+
*/
|
|
777
|
+
nc_get_rkey() {
|
|
778
|
+
return this.send('nc_get_rkey', {});
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* @napcat
|
|
782
|
+
* 获取群禁言列表
|
|
783
|
+
*/
|
|
784
|
+
get_group_shut_list(params) {
|
|
785
|
+
return this.send('get_group_shut_list', params);
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* @napcat
|
|
789
|
+
* 移动群文件
|
|
790
|
+
*/
|
|
791
|
+
move_group_file(params) {
|
|
792
|
+
return this.send('move_group_file', params);
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* @napcat
|
|
796
|
+
* 转移群文件
|
|
797
|
+
*/
|
|
798
|
+
trans_group_file(params) {
|
|
799
|
+
return this.send('trans_group_file', params);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* @napcat
|
|
803
|
+
* 重命名群文件
|
|
804
|
+
*/
|
|
805
|
+
rename_group_file(params) {
|
|
806
|
+
return this.send('rename_group_file', params);
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* @napcat
|
|
810
|
+
* 获取频道列表
|
|
811
|
+
*/
|
|
812
|
+
// get_guild_list(params: WSSendParam['get_guild_list']) {
|
|
813
|
+
// return this.send('get_guild_list', params)
|
|
814
|
+
// }
|
|
815
|
+
/**
|
|
816
|
+
* @napcat
|
|
817
|
+
* 获取频道服务简介
|
|
818
|
+
*/
|
|
819
|
+
// get_guild_service_profile(params: WSSendParam['get_guild_service_profile']) {
|
|
820
|
+
// return this.send('get_guild_service_profile', params)
|
|
821
|
+
// }
|
|
822
|
+
/**
|
|
823
|
+
* @napcat
|
|
824
|
+
* 获取群忽略通知
|
|
825
|
+
*/
|
|
826
|
+
get_group_ignored_notifies(params) {
|
|
827
|
+
return this.send('get_group_ignored_notifies', params);
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @napcat
|
|
831
|
+
* 发送群签到
|
|
832
|
+
*/
|
|
833
|
+
set_group_sign(params) {
|
|
834
|
+
return this.send('set_group_sign', params);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* @napcat
|
|
838
|
+
* 发送数据包
|
|
839
|
+
*/
|
|
840
|
+
send_packet(params) {
|
|
841
|
+
return this.send('send_packet', params);
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* @napcat
|
|
845
|
+
* 获取小程序卡片
|
|
846
|
+
*/
|
|
847
|
+
get_mini_app_ark(params) {
|
|
848
|
+
return this.send('get_mini_app_ark', params);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* @napcat
|
|
852
|
+
* 获取 AI 语音
|
|
853
|
+
*/
|
|
854
|
+
get_ai_record(params) {
|
|
855
|
+
return this.send('get_ai_record', params);
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* @napcat
|
|
859
|
+
* 获取 AI 角色列表
|
|
860
|
+
*/
|
|
861
|
+
get_ai_characters(params) {
|
|
862
|
+
return this.send('get_ai_characters', params);
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* @napcat
|
|
866
|
+
* 发送群 AI 记录
|
|
867
|
+
*/
|
|
868
|
+
send_group_ai_record(params) {
|
|
869
|
+
return this.send('send_group_ai_record', params);
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* @napcat
|
|
873
|
+
* 获取客户端密钥
|
|
874
|
+
*/
|
|
875
|
+
get_clientkey() {
|
|
876
|
+
return this.send('get_clientkey', {});
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* @napcat
|
|
880
|
+
* 发送戳一戳
|
|
881
|
+
*/
|
|
882
|
+
send_poke(params) {
|
|
883
|
+
return this.send('send_poke', params);
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* @napcat
|
|
887
|
+
* 设置群踢人
|
|
888
|
+
*/
|
|
889
|
+
set_group_kick_members(params) {
|
|
890
|
+
return this.send('set_group_kick_members', params);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* @napcat
|
|
894
|
+
* 设置群机器人添加选项
|
|
895
|
+
*/
|
|
896
|
+
set_group_robot_add_option(params) {
|
|
897
|
+
return this.send('set_group_robot_add_option', params);
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* @napcat
|
|
901
|
+
* 设置群添加选项
|
|
902
|
+
*/
|
|
903
|
+
set_group_add_option(params) {
|
|
904
|
+
return this.send('set_group_add_option', params);
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* @napcat
|
|
908
|
+
* 设置群搜索选项
|
|
909
|
+
*/
|
|
910
|
+
set_group_search(params) {
|
|
911
|
+
return this.send('set_group_search', params);
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @napcat
|
|
915
|
+
* 获取可疑好友添加请求
|
|
916
|
+
*/
|
|
917
|
+
get_doubt_friends_add_request(params) {
|
|
918
|
+
return this.send('get_doubt_friends_add_request', params ?? {});
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* @napcat
|
|
922
|
+
* 设置可疑好友添加请求
|
|
923
|
+
*/
|
|
924
|
+
set_doubt_friends_add_request(params) {
|
|
925
|
+
return this.send('set_doubt_friends_add_request', params);
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* @napcat
|
|
929
|
+
* 获取 RKey
|
|
930
|
+
*/
|
|
931
|
+
get_rkey() {
|
|
932
|
+
return this.send('get_rkey', {});
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @napcat
|
|
936
|
+
* 获取 RKey 服务器
|
|
937
|
+
*/
|
|
938
|
+
get_rkey_server() {
|
|
939
|
+
return this.send('get_rkey_server', {});
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @napcat
|
|
943
|
+
* 设置群备注
|
|
944
|
+
*/
|
|
945
|
+
set_group_remark(params) {
|
|
946
|
+
return this.send('set_group_remark', params);
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* @napcat
|
|
950
|
+
* 获取私聊文件链接
|
|
951
|
+
*/
|
|
952
|
+
get_private_file_url(params) {
|
|
953
|
+
return this.send('get_private_file_url', params);
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* @napcat
|
|
957
|
+
* 点击消息中的按钮
|
|
958
|
+
*/
|
|
959
|
+
click_inline_keyboard_button(params) {
|
|
960
|
+
return this.send('click_inline_keyboard_button', params);
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* @napcat
|
|
964
|
+
* 设置群待办
|
|
965
|
+
*/
|
|
966
|
+
set_group_todo(params) {
|
|
967
|
+
return this.send('set_group_todo', params);
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* @napcat
|
|
971
|
+
* 获取群相册列表
|
|
972
|
+
*/
|
|
973
|
+
get_qun_album_list(params) {
|
|
974
|
+
return this.send('get_qun_album_list', params);
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* @napcat
|
|
978
|
+
* 上传图片到群相册
|
|
979
|
+
*/
|
|
980
|
+
upload_image_to_qun_album(params) {
|
|
981
|
+
return this.send('upload_image_to_qun_album', params);
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @napcat
|
|
985
|
+
* 获取群相册媒体列表
|
|
986
|
+
*/
|
|
987
|
+
get_group_album_media_list(params) {
|
|
988
|
+
return this.send('get_group_album_media_list', params);
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* @napcat
|
|
992
|
+
* 评论群相册
|
|
993
|
+
*/
|
|
994
|
+
do_group_album_comment(params) {
|
|
995
|
+
return this.send('do_group_album_comment', params);
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* @napcat
|
|
999
|
+
* 点赞群相册媒体
|
|
1000
|
+
*/
|
|
1001
|
+
set_group_album_media_like(params) {
|
|
1002
|
+
return this.send('set_group_album_media_like', params);
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* @napcat
|
|
1006
|
+
* 删除群相册媒体
|
|
1007
|
+
*/
|
|
1008
|
+
del_group_album_media(params) {
|
|
1009
|
+
return this.send('del_group_album_media', params);
|
|
1010
|
+
}
|
|
1011
|
+
}
|