You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
import telegramApi from 'telegram-api-js/dist/telegramApi.js'
export default {
,data() {return {}}
,created(){
telegramApi.setConfig({
app: {
id: 123456789, /* in App I am use real ID */
hash: '123456789', /* in App I am use real hash */
version: telegramApi.VERSION /* App version */
},
server: {
test: [
{
id: 2, /* DC ID */
host: '149.154.167.40',
port: 443
}
],
production: [
{
id: 2, /* DC ID */
host: 149.154.167.40',
port: 443
}
]
}
});
telegramApi.getUserInfo().then(function(user) {
if (user.id) {
console.log(user);
}
else{
// Log in
}
});
}
}
and get error
telegramApi.js?1c95:5353 Uncaught ReferenceError: ContainerModule is not defined
at eval (telegramApi.js?1c95:5353)
at eval (telegramApi.js?1c95:5397)
at Object../node_modules/telegram-api-js/dist/telegramApi.js (app.js:1936)
at __webpack_require__ (app.js:725)
at fn (app.js:102)
at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Chats.vue?vue&type=script&lang=js&:12)
at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Chats.vue?vue&type=script&lang=js& (app.js:907)
at __webpack_require__ (app.js:725)
at fn (app.js:102)
at eval (Chats.vue?afc6:1)
The text was updated successfully, but these errors were encountered:
Hello!
I am use vue.js
and get error
The text was updated successfully, but these errors were encountered: