feat(flash picture): support flash picture
This commit is contained in:
parent
f2595110a9
commit
dfb1421f84
@ -28,6 +28,12 @@ class QQMsgProcessor:
|
||||
efb_msg.text = self._("[Image Source missing]")
|
||||
return [efb_msg]
|
||||
|
||||
# flash picture
|
||||
if "flash" == data.get("type", ""):
|
||||
data["url"] = f'https://gchat.qpic.cn/gchatpic_new/1/1-1-' \
|
||||
f'{data["file"].replace(".image", "").upper()}/0?term=3%27'
|
||||
efb_msg.text = self._('Send a flash picture.')
|
||||
|
||||
efb_msg.file = cq_get_image(data["url"])
|
||||
if efb_msg.file is None:
|
||||
efb_msg.type = MsgType.Text
|
||||
|
Loading…
Reference in New Issue
Block a user