-
Notifications
You must be signed in to change notification settings - Fork 109
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
First example doesnt work #276
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
`const path = require('path');
const MTProto = require('@mtproto/core');
const api_id = "1663794";
const api_hash = "d011ea569072f733217411d392cce73";
// 1. Create instance
const mtproto = new MTProto({
api_id,
api_hash,
});
console.log("test before");
// 2. Print the user country code
mtproto.call('help.getNearestDc').then(result => {
console.log('country:', result.country);
});
console.log("test after");`
When i run, i get this messages in console:
D:\xampp\htdocs\telegrr>node index.js
test before
test after
And what i can do with this? Method "help.getNearestDc", does not respond. I wait five minutes.
The text was updated successfully, but these errors were encountered: