Method: users.setSecureValueErrors

Back to methods index

Set secure value error for telegram passport


Name Type Description Required
id Username, chat ID, Update, Message or InputUser The user ID Optional
errors Array of SecureValueError The errors Yes

Return type: Bool

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Bool = $MadelineProto->users->setSecureValueErrors(['id' => InputUser, 'errors' => [SecureValueError, SecureValueError], ]);

Or, if you’re into Lua:

Bool = users.setSecureValueErrors({id=InputUser, errors={SecureValueError}, })


Code Type Description
400 USER_ID_INVALID The provided user ID is invalid
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.