971 B
971 B
title: danog\MadelineProto\Db\DbPropertiesTrait: Include this trait and call DbPropertiesTrait::initDb to use MadelineProto's database backend for properties.
description: You will have to define a
$dbProperties
static array property, with a list of properties you want to store to a database.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
danog\MadelineProto\Db\DbPropertiesTrait
Author: Daniil Gentili daniil@daniil.it
Include this trait and call DbPropertiesTrait::initDb to use MadelineProto's database backend for properties.
You will have to define a $dbProperties
static array property, with a list of properties you want to store to a database.
See also:
Properties
$dbProperties
:array<string, DbPropertiesFactory::TYPE_*>
Generated by danog/phpdoc