version: 2.1.3







dataDel

delete data in database, NOTE : for now , only work on json database

Parameters

key string The key you want to delete data in database Yes
type string type of chat , must be one of these : private,group,supergroup,channel Optional(Caught by catchFields method)
id int user or chat id for delete data in it Optional(Caught by catchFields method)

Method errors

ErrorNamedescription
key parameter not found parameter key not founded , set it like example
key not found key not found in BPT database
key most be string key parameter most be string
id not found id not found in BPT database
only work on json db this method only work in json db type

Method examples

$this->dataDel(['key'=>'user_y_coin','type'=>'private','id'=>'123456789']);
$this->dataDel(['key'=>'user_x_coin']);

Method alices

There is no alices

Method output :

Boolean