levy193 / vue-telegram-plugin

5 stars 1 forks source link

Vue.$ #3

Open fwiwDev opened 3 years ago

fwiwDev commented 3 years ago

Hi,

Thanks for building a nice library for Vue! I have an Electron Vue app and an trying to integrate with Telegram.

Following your instructions, I have done the following test:

import Vue from 'vue'
import VueTelegram from 'vue-telegram-plugin'

...

doTel () {
      Vue.use(VueTelegram, {
        useTestDC: true,
        apiId: 'XXXXXXX',
        apiHash: '89898dhildjgd229890890'
      })
      Vue.$vTelegram.init()
}

But when doTel is called, I get a basic error...

vue.runtime.esm.js:1888 TypeError: Cannot read property 'init' of undefined

Is what I am doing wrong obvious to you?

Thanks so much!!

flint002 commented 1 year ago

Same on here... On browser it work fine.. but on android apk error calling init first