api_docs: Clarify that bot_storage.contains() operates on the cache.

Fixes #32580
This commit is contained in:
Niloth P
2024-12-31 15:02:00 +05:30
committed by Tim Abbott
parent 82ddc73df7
commit 8d42520237

View File

@@ -349,6 +349,10 @@ print(bot_handler.storage.get("foo")) # print "bar"
will check if the entry `key` exists.
Note that this will only check the cache, so it would return `False` if no
previous call to `bot_handler.storage.get()` or `bot_handler.storage.put()`
was made for `key`, since the bot was restarted.
##### Arguments
* key - a UTF-8 string