alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
630 stars 113 forks source link

Can't run the simple file because of CONNECTION_API_ID_INVALID #215

Open CelliHere opened 2 years ago

CelliHere commented 2 years ago

I'm following the simple file example and getting the API_ID from http://my.telegram.org, even parse it into an INT for try and error.

Whenever I'm calling this method: await mtproto.call('help.getNearestDc').then(result => { console.log('country:', result.country); });

I get the following error message: { _: 'mt_rpc_error', error_code: 400, error_message: 'CONNECTION_API_ID_INVALID' }

The API ID is currently nowhere in use (I did use it somewhere before) and I tripple checked each single digit.

Any idea what could be wrong?

mlenarsic commented 1 year ago

Same issue here. Any updates?

CelliHere commented 1 year ago

sadly not, I never got it to work and now mainly use gramJS

binSaed commented 1 year ago

@alik0211 any update

davie-robertson commented 1 year ago

looks like a major issue with this library - I thought maybe changing to the test DC provided in https://my.telegram.org/apps might help, but there's little to no docs on this here.