BotDB Library Functions
Discover the BotDB library for Bots Mother This comprehensive guide details all methods, including CRUD operations, querying, and batch processing, with examples for seamless Telegram bot in
BotDB::get($path)
$result = BotDB::get('messages');
// Returns: ['ok' => true, 'data' => [['user_id' => 123, 'text' => 'Hello'], ...], 'error' => null, 'exists' => true]
$result = BotDB::get('users.settings.theme');
// Returns: ['ok' => true, 'data' => ['dark', ...], 'error' => null, 'exists' => true]BotDB::append($path, $value)
BotDB::clear($path = null)
BotDB::query($sql, $params = [])
Notes
Last updated