Method: update_2fa

The params array can contain password (current password), new_password, email (optional) and hint params.

Parameters:

Name Type
params An array of parameters

Return type: Bool

Example (now fully async!):

$result = yield $MadelineProto->update_2fa(['password' => 'current password', 'new_password' => 'New password', 'email' => 'daniil@daniil.it', 'hint' => 'ponies']);
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.