fix: 闪照

This commit is contained in:
Clansty 2024-03-29 21:29:22 +08:00
parent c64eb8768d
commit d46587f0b3
2 changed files with 18 additions and 5 deletions

View File

@ -95,3 +95,16 @@ index de3a1d116c794ae2ee9e18836d6669a4d89d59d0..9c6c5c1fc5949eb49636d539aed4ed14
/** 一种特殊消息(官方客户端无法解析) */
mirai(data) {
return {
diff --git a/lib/message/parser.js b/lib/message/parser.js
index f661775a1fb146fefcbb8db73cfa62fba4d737f4..c3d2bd9f295e6cc3d5c0a505b3d90f8c007e3cea 100644
--- a/lib/message/parser.js
+++ b/lib/message/parser.js
@@ -58,7 +58,7 @@ class Parser {
this.content = elem.data;
break;
case 3: //flash
- elem = this.parseNewImgElem(proto, "flash");
+ elem = this.parseImgElem(type, proto, "flash");
brief = "闪照";
this.content = `{flash:${elem.file.slice(0, 32).toUpperCase()}}`;
break;

View File

@ -6,7 +6,7 @@ settings:
patchedDependencies:
'@icqqjs/icqq@1.1.3':
hash: sdjingcrnbi2vxtzt4kdqlffba
hash: zzzz5cngsr5x7njvvhk6gigvom
path: patches/@icqqjs__icqq@1.1.3.patch
importers:
@ -27,7 +27,7 @@ importers:
version: 7.0.1
'@icqqjs/icqq':
specifier: 1.1.3
version: 1.1.3(patch_hash=sdjingcrnbi2vxtzt4kdqlffba)
version: 1.1.3(patch_hash=zzzz5cngsr5x7njvvhk6gigvom)
'@prisma/client':
specifier: 5.9.1
version: 5.9.1(prisma@5.9.1)
@ -102,7 +102,7 @@ importers:
version: 0.2.2
telegram:
specifier: https://github.com/clansty/gramjs/releases/download/2.19.10%2Brevert_media/telegram-2.19.10.tgz
version: '@github.com/clansty/gramjs/releases/download/2.19.10%2525252525252525252525252525252Brevert_media/telegram-2.19.10.tgz'
version: '@github.com/clansty/gramjs/releases/download/2.19.10%252525252525252525252525252525252Brevert_media/telegram-2.19.10.tgz'
tmp-promise:
specifier: ^3.0.3
version: 3.0.3
@ -798,7 +798,7 @@ packages:
glob: 10.3.10
dev: false
/@icqqjs/icqq@1.1.3(patch_hash=sdjingcrnbi2vxtzt4kdqlffba):
/@icqqjs/icqq@1.1.3(patch_hash=zzzz5cngsr5x7njvvhk6gigvom):
resolution: {integrity: sha512-vAXX0VwsT3NuwGmFCiM1cES3+70fNey7GdXJIUSnInH/koHpntMjrm4a96VPx9mBW55FLSLsPsvwQlPSXTNLSA==, tarball: https://npm.pkg.github.com/download/@icqqjs/icqq/1.1.3/28bbae6e42518162eace3ee6f7484dd604c63258}
engines: {node: '>= v14'}
dependencies:
@ -5706,7 +5706,7 @@ packages:
- utf-8-validate
dev: false
'@github.com/clansty/gramjs/releases/download/2.19.10%2525252525252525252525252525252Brevert_media/telegram-2.19.10.tgz':
'@github.com/clansty/gramjs/releases/download/2.19.10%252525252525252525252525252525252Brevert_media/telegram-2.19.10.tgz':
resolution: {tarball: https://github.com/clansty/gramjs/releases/download/2.19.10%2Brevert_media/telegram-2.19.10.tgz}
name: telegram
version: 2.19.10