Update userdata uri_cache after uploading image

This commit is contained in:
gammafn 2022-01-31 15:43:57 -06:00
parent e3e353aab4
commit dcd69da85f
1 changed files with 1 additions and 0 deletions

1
bot.py
View File

@ -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