EdJoPaTo
EdJoPaTo
I am not familiar with the scenes of telegraf but the session of telegraf (which is deprecated) and this library are doing basically the same on the bot side of...
From experience: It worked fine with async stuff for me. But forgetting the await on something is easily done in JavaScript / TypeScript. There are some ESLints that help with...
AWS should be completely irrelevant here. Node.js is Node.js and its async/await Logic is handled the same way on all platforms. Whatever the exact problem is, you should be able...
I use this as it is in multiple bots. Check for example [my template](https://github.com/EdJoPaTo/telegram-typescript-bot-template/blob/42dc65a01581d78ed92c3cba91ce53137f23e8fe/source/bot/index.ts#L6) which also works. Typings are not ideal but they work good enough for me. The only...
If you have `esModuleInterop` enabled (in `tsconfig.json`) you might need an import without `* as`. Personally I try to avoid `esModuleInterop` as it also works without (as long as the...
As people check this issue I will suggest it here [again](https://github.com/RealSpeaker/telegraf-session-local/pull/147#issuecomment-986717006): I strongly suggest using [grammY](https://grammy.dev/) over Telegraf as it has a lot of benefits while being mostly API compatible....
I went in a more radical approach with this. Mainly I implemented the async File lowdb variant manually and removed the dependency of lowdb and lodash-id completely. As a downside...
> > whats the status on this? > > @EdJoPaTo are you still working on this? Or is this project looking for some new active community members to fix this...
require imports are kinda deprecated in TypeScript. The way to go are ECMA Modules. TypeScript uses them natively. So with typescript you should import this way: ```ts import LocalSession from...
@qWici see https://github.com/RealSpeaker/telegraf-session-local/pull/119#issuecomment-882582018 Personally I switched from telegraf to [grammY](https://grammy.dev) and plan on using [grammy-file-storage](https://github.com/Satont/grammy-file-storage) which has simpler code and compatibility with both Deno and Node.js.