Update userdata uri_cache after uploading image
This commit is contained in:
parent
e3e353aab4
commit
dcd69da85f
1
bot.py
1
bot.py
|
@ -169,6 +169,7 @@ class Bot:
|
||||||
res = [response.content_uri, content_type, i.size[0], i.size[1], image_length]
|
res = [response.content_uri, content_type, i.size[0], i.size[1], image_length]
|
||||||
if cache_key:
|
if cache_key:
|
||||||
self.uri_cache[cache_key] = res
|
self.uri_cache[cache_key] = res
|
||||||
|
self.save_settings() # save cache
|
||||||
return res
|
return res
|
||||||
else:
|
else:
|
||||||
response: UploadError
|
response: UploadError
|
||||||
|
|
Loading…
Reference in New Issue