怎么得到聊天图片的url <img>0a71010c3-2816-476d-b08c-04d314c06ba7</img> #778
Answered
by
Him188
tokisakiyuu
asked this question in
Q&A
-
我从QQ的sqlite数据库(QQ.db,里面是聊天记录)里找到了一条图片消息记录 {
msgId: 4,
uin: '(马赛克)',
time: 1567267686,
type: 1,
flag: 0,
read: 0,
content: '<img>0a71010c3-2816-476d-b08c-04d314c06ba7</img>',
visiable: 1,
richflag: 0,
moreflag: 0,
actionUrl: null,
adid: null,
appShareID: 0,
roamMsg: 0,
conseqMsg: 0,
roamRandom: 0,
roamTime: 0,
fileMsgType: 0,
onlineFileId: 0,
placeholderMsg: 0,
relatedFailedMsgID: 0,
msgRelatedFlag: 0,
sendState: 0,
wSourceID: 0,
wSourceSubID: 0,
strShareExtra: null,
richSource: 1,
secretReadtime: null,
secretTimelimit: null,
secretEncryptKey: null,
secretPreHeadLength: null,
secretContent: null,
captureCount: null,
toSecretStatus: null,
fromSecretStatus: null,
secretfromUin: null,
secrettoUin: null,
msgRandom: 72057594788086640,
msgSeq: 26891,
bubbleid: 89,
int: null,
TLVtag: null,
TLVvalue: null,
peerUin: null,
picUrl: '[{"uploadPaused":false,"picDownloadLen":0,"picImgFileType":0,"uploadSecondTransfer":0,"isPicShowInfo":false,"uploadImageToQzoneNumber":0,"picFormat":4,"picWidth":97,"imgBizType":0,"hasCheckPicSize":false,"isGif":0,"customFaceType":0,"isOriginal":0,"picShowVersion":0,"emojiPackageId":0,"picShowLen":0,"name":"<img>0a71010c3-2816-476d-b08c-04d314c06ba7<\\/img>","uploadImageToQzoneBathId":0,"uploadImageToQzoneNumberIndex":0,"md5":"DF642DC43C87F02EDCA9F5201132E389","showQIMTail":false,"picHeight":130,"uploadImageToQzoneFlag":0,"fileLen":353758,"picShowId":0,"uploadlength":0}]',
secretFileDurationTime: null,
secretFileLeftTime: null,
secretFileExpireTime: null,
secretFileReadTimes: null,
errorCode: null,
extensionData: <Buffer 62 0a 08 00 20 00 28 00 30 00 38 00 80 01 00 88 01 00 ba 01 00 d8 02 06 b0 03 00 f2 04 08 5b e5 9b be e7 89 87 5d 88 06 00 90 06 00 d0 06 80 80 04 d8 ... 20 more bytes>
} 有没有大佬知道要怎么拿到图片的url并下载它 这个问题稍微有点偏题,不过希望有大佬指教一下,谢谢🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
Him188
Dec 27, 2020
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tokisakiyuu
-
建议你尽快获取,群聊图片缓存不超过1个月,私聊图片缓存感觉上不足7天 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0a71010c3-2816-476d-b08c-04d314c06ba7
前面加一个 '/' 构造Image
:net.mamoe.mirai.message.data.Image.Key#fromId
然后Mirai.queryUrl(image)