Closed olifur closed 2 years ago
Hi devs,
the last working version for me is 3.0.0, I tested it using:
for i in $(npm view telegram-test-api versions --json | grep '"' | sed 's#[", ]##g'); do rm -rf node_modules; echo $i; npm install telegram-test-api@$i; echo "const TelegramServer = require('telegram-test-api'); new TelegramServer();" | node; done
everything > 3.0.0 produces the TypeError: TelegramServer is not a constructor
error.
Hi! Fixed it in 4.1.3 version, it was an issue with default export in TypeScript.
Thank you very much!
Hi Devs,
Just starting out with the project and got my first error with the sample code from the website
following sample file:
main.js
running this code
Something seems to be odd with the export / constructor of the TelegramServer class?
Thank you very much for your help Oli