Skip to content
New issue

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

[ERROR] telegram-link Client is not yet ready! #31

Open
pavelsr opened this issue Jul 26, 2016 · 4 comments
Open

[ERROR] telegram-link Client is not yet ready! #31

pavelsr opened this issue Jul 26, 2016 · 4 comments

Comments

@pavelsr
Copy link

pavelsr commented Jul 26, 2016

Hi Enrico,

I have similar issue to #8 , but decided to open a new issue too cause issue #8 is closed and you could leave my comment without attention.

My purpose is to know whether the passed phone number was registered in Telegram or no. I have same problem when requesting with your library auth.checkPhone method, which even doesn't requre authorization according API docs.

Here is my script

var data = {} // Hold all global data
data.telegramLink = require('../telegram.link')();

data.app = {
   id: 12345,
     hash: '12345678901234567890',
     version: '1.0.0',
     lang: 'en'
};

data.client = data.telegramLink.createClient(data.app, data.telegramLink.TEST_PRIMARY_DC, function(ex){
  if(!ex) { 
    console.log('Connected to Telegram!');
    data.client.auth.checkPhone('79885851900', function (result) {
      console.log(result);
    }); 
  } 
  else { 
    console.log(ex);
  }
})

I have checked and tested telecommander.js, it works fine. My code is very similar to it, but I can't figure out what's wrong.

Please help to correct my code.

@lsndr
Copy link

lsndr commented Oct 2, 2016

Try to connect via TCP

@Pradeepraj
Copy link

Facing the same issue here!

@pavelsr Please share the solution if its found. Thank You.

@guifry
Copy link

guifry commented Sep 2, 2017

Same here

@sk3lk0
Copy link

sk3lk0 commented Jul 16, 2018

Hi, can you help me ? i have error my request is:
https://api.telegram.org/botapikey/auth.checkPhone?phone_number=number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants