KnorpelSenf / telegraf-session-firestore

Google Firestore based session middleware for telegraf.js
MIT License
4 stars 0 forks source link

Using with typescript #5

Closed qWici closed 2 years ago

qWici commented 2 years ago

Can someone give me a hint on how to use this library with Typescript so that it does not complain about missing property

image @KnorpelSenf

KnorpelSenf commented 2 years ago

This has nothing to do specifically with this library. You should look into how you can define custom properties on the context object in Telegraf. Use this to make sure ctx.session exists and the error will go away.