From 76ec3a3068b1b28e1e0ed3fe384d3ae004d3c342 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Wed, 27 Jan 2021 10:05:06 +0800 Subject: [PATCH] core add get_img --- zzcore.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zzcore.py b/zzcore.py index 6117918..81b8fd5 100644 --- a/zzcore.py +++ b/zzcore.py @@ -49,6 +49,14 @@ class StdAns(): } return requests.get(url = url, params=data).json()['data']['message_id'] + def get_img(self,cache_name): + url = APIURL + "get_image" + + data = { + 'access_token' : AUTHORIZATION, + 'file': cache_name + } + return requests.get(url = url, params=data).json()['data']['url'] def delmsg(self,msgid): url = APIURL + "delete_msg"