Closed Eonus21 closed 4 years ago
It was once successfully, with version 3.0.0
I have the same problem. However, it worked with test server.
Guys, now try set syncAuth
to false
for auth.signIn
and auth.checkPassword
. I will look for the error tomorrow
Guys, now try set
syncAuth
tofalse
forauth.signIn
andauth.checkPassword
. I will look for the error tomorrow
Doesn't work with syncAuth: false
either, keeps giving me the same response:
signInResponse: {
_: 'auth.authorizationSignUpRequired',
pFlags: {},
flags: 1,
terms_of_service: {
_: 'help.termsOfService',
pFlags: [Object],
flags: 1,
id: [Object],
text: 'You must be at least 16 years old to sign up. By signing up for Telegram, you agree not to:\n' +
'\n' +
'- Use our service to send spam or scam users.\n' +
'- Promote violence on publicly viewable Telegram bots, groups or channels.\n' +
'- Post illegal pornographic content on publicly viewable Telegram bots, groups or channels.\n' +
'\n' +
'We reserve the right to update these Terms of Service later.\n' +
'\n' +
'By proceeding, you are accepting these Terms and our Privacy Policy.',
entities: [Array]
}
}
The phone number I used is registered and has an account associated with it, so auth.authorizationSignUpRequired makes no sense...
@sami286 You may be logging in to test servers. And you need to register separately on test servers
To log in to the main Telegram servers comment the test
flag:
const mtproto = new MTProto({
api_id: process.env.API_ID,
api_hash: process.env.API_HASH,
// test: true,
});
@sami286 You may be logging in to test servers. And you need to register separately on test servers
To log in to the main Telegram servers comment the
test
flag:const mtproto = new MTProto({ api_id: process.env.API_ID, api_hash: process.env.API_HASH, // test: true, });
Thanks, that was exactly my problem :) I apologise for commenting with irrelevant info, I thought it could be related to the issue
@IIE4EHbKAKOKC wait more than two minutes. The library syncs authorization on all DC's (this may take several minutes). Or disable it: set syncAuth
to false
for auth.signIn
and auth.checkPassword
.then
blocks.catch
blocks@alik0211 actually i need to use the 'auth.exportAuthorisation' so i need it syncs authorisation on all dc's but it is taking more my result is on hold
@somgupta13 I answered you in another issue - https://github.com/alik0211/mtproto-core/issues/41#issuecomment-623541395
@IIE4EHbKAKOKC if you don't send an info by may 11 I'll close the issue
This error is probably fixed in version 3.1.1. View more: https://t.me/mtproto_core/17
I just copy login example, and have problem. Nothings happens after calling auth.signIn. All code which i try is below. I try it with such versions as
And then nothing happens after two minutes, even so Telegram send me message about new logged device