Closed ismenc closed 6 years ago
Im having some trouble using MTProto, is this library working or unsupported? Im following the examples.
If someone wanna help 😃 -> Code:
import { MTProto } from 'telegram-mtproto' . . . many instructions . . . // This values are taken from example... const api = { invokeWithLayer: 0xda9b0d0d, layer : 57, initConnection : 0x69796de9, api_id : *hey this is secret*, app_version : '1.0.1', lang_code : 'en' } const server = { webogram: true, dev: true } const telegram = MTProto({ api, server })
Output:
var telegram = (0, _telegramMtproto.MTProto)({ api: api, server: server }); ^ TypeError: (0 , _telegramMtproto.MTProto) is not a function
My fault, i installed a wrong library version hehe hehe see you
Im having some trouble using MTProto, is this library working or unsupported? Im following the examples.
If someone wanna help 😃 -> Code:
Output: