This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to sign up user via gram.js api, but I'm not getting sms code and SignUp method gives me PHONE_CODE_INVALID error.
(async () => { const client = new TelegramClient('anon', apiId, apiHash, { connectionRetries: 5, }); await client.connect(); const {phoneCodeHash} = await client.sendCode({ apiHash, apiId }, phoneNumber, true); const result = await client.invoke(new Api.auth.SignUp({ phoneNumber, phoneCodeHash, firstName: 'Tesih', lastName: 'Gueyu' })); console.log(result); })();All reactions