mtproto-core
mtproto-core copied to clipboard
Can't run the simple file because of CONNECTION_API_ID_INVALID
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?
Same issue here. Any updates?
sadly not, I never got it to work and now mainly use gramJS
@alik0211 any update
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.