We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In script
const api = require('./api.js'); const login = require('./login.js'); (async () => { const res = await login(); try { const info = await api.call('users.getFullUser', { id: { _: 'inputUser', user_id: '4*****1', }, }); console.log(info.users[0]); } catch (e) { console.log('getFullUser', e); } })();
where api.js is from https://mtproto-core.js.org/docs/setup-handle-errors and login.js is from https://mtproto-core.js.org/docs/user-authorization users.getFullUser works good. If I change phone, code in login.js (and api_id, api_hash in api.js) to my second phone,code,id,hash - users.getFullUser rise error: { _: 'mt_rpc_error', error_code: 400, error_message: 'USER_ID_INVALID' } How to fix it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In script
where api.js is from https://mtproto-core.js.org/docs/setup-handle-errors and login.js is from https://mtproto-core.js.org/docs/user-authorization
users.getFullUser works good.
If I change phone, code in login.js (and api_id, api_hash in api.js) to my second phone,code,id,hash - users.getFullUser rise error:
{
_: 'mt_rpc_error',
error_code: 400,
error_message: 'USER_ID_INVALID'
}
How to fix it?
The text was updated successfully, but these errors were encountered: