Database
MongoDB-backed storage API for Python bots.
Props (key/value)
Resources (counters)
Was this page helpful?
Last updated March 22, 2026
MongoDB-backed storage API for Python bots.
# Bot-scoped
Bot.saveData("config", {"welcome": "hi"})
Bot.getData("config")
# User-scoped
User.saveData("email", "[email protected]", user=user.get("id"))
User.getData("email", user=user.get("id"))libs.Resources.globalRes("visits").add(1)
libs.Resources.userRes("points", user=user.get("id")).add(5)