users.setSecureValueErrors
Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.users.setSecureValueErrors({
id: new Api.InputUser({...}),
errors: [new Api.SecureValueError({...})],
}));
console.log(result); // prints the result
})();
TL schema
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;
Parameters
Result
Possible errors
Code
Type
Description
400
USER_ID_INVALID
The provided user ID is invalid
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?