core add get_img

This commit is contained in:
SiHuan 2021-01-27 10:05:06 +08:00
parent 2857c4e933
commit 00b9425921

View file

@ -49,6 +49,14 @@ class StdAns():
} }
return requests.get(url = url, params=data).json()['data']['message_id'] 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): def delmsg(self,msgid):
url = APIURL + "delete_msg" url = APIURL + "delete_msg"