Closed morlz closed 7 years ago
why are you using mtproto2-browser.js ? Are you running code in browser or in nodejs?
i use import MTProto from 'telegram-mtproto'
in nodejs
hmm, it should be okay @zerobias
@morlz
Something going wrong on your side, because 3.2.9 even doesn't contain file mtproto2-browser
(moreover you still doesn't need it)
Try to clean up your project, e.g. remove node_modules and run npm install
again
using
get error
ReferenceError: window is not defined
on evry api call. What am I doing wrong?src: in file
time-manager.js
on line13
code:if (!isNode) t += window.tsOffset || 0
dist: in filemtproto2-browser.js
on line1302
code:if (!__WEBPACK_IMPORTED_MODULE_0_detect_node___default.a) t += window.tsOffset || 0;