fix: TG spoiler 图片转 QQ 报错

This commit is contained in:
Clansty 2024-01-28 13:24:05 +08:00
parent 62df48c0a5
commit b64c6f7a4d
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 3 additions and 3 deletions

View File

@ -217,15 +217,15 @@ export default class OicqClient extends Client {
await contact.uploadImages(imgs);
const compressed = await gzip(pb.encode({
1: nodes,
2: {
2: [{
1: 'MultiMsg',
2: {
1: nodes,
},
},
}],
}));
const _uploadMultiMsg = Reflect.get(contact, '_uploadMultiMsg') as Function;
const resid = await _uploadMultiMsg.apply(contact, compressed);
const resid = await _uploadMultiMsg.apply(contact, [compressed]);
return {
tSum: nodes.length,
resid,