-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with types #117
Comments
I use this as it is in multiple bots. Check for example my template which also works. Typings are not ideal but they work good enough for me. The only thing that would really improve types in my opinion would be a (breaking) refactoring into native typescript. Then types are exactly the same as the underlying JavaScript. |
I tried the import like you, but still the same problem I use the latest version which is 2.1.0 and my telegraf version is 4.0.3. |
If you have |
Yes, I do the same. I have already tried with both enabled and disabled |
Hey!
|
Still having this issue too! not typescript compatible |
Using |
As people check this issue I will suggest it here again: I strongly suggest using grammY over Telegraf as it has a lot of benefits while being mostly API compatible. Its documentation is way better and was built with the learnings from Telegraf which allows for better performance, simpler and more powerful code syntax. If you care for TypeScript (which is probably true as you seek this issue) then grammY will be way more helpful and correct than Telegraf can as grammY was built with types in mind. |
Hey, just install package and got types error:
Seems it because also interface exported. I think change
export = LocalSession
toexport default LocalSession
can fix this.Now I can't really use this package.
The text was updated successfully, but these errors were encountered: