You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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); })();
Beta Was this translation helpful? Give feedback.
All reactions