mtproto-core icon indicating copy to clipboard operation
mtproto-core copied to clipboard

Can't run the simple file because of CONNECTION_API_ID_INVALID

Open CelliHere opened this issue 3 years ago • 4 comments

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?

CelliHere avatar Nov 03 '21 22:11 CelliHere

Same issue here. Any updates?

mlenarsic avatar Nov 19 '22 18:11 mlenarsic

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

CelliHere avatar Nov 20 '22 11:11 CelliHere

@alik0211 any update

binSaed avatar Feb 19 '23 17:02 binSaed

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.

davie-robertson avatar May 03 '23 08:05 davie-robertson