Closed Taoufik-B closed 3 years ago
Looks like you are right. Wanna provide a Pull Request changing that?
@Taoufik-B thanks for catch!
What about line 13:
https://github.com/RealSpeaker/telegraf-session-local/blob/5a6e0a88c077373580638b30f298bced5e4a52ad/examples/extra.js#L13
- it's correct, because we're overriding property
field of LocalSession
class instance, when calling middleware()
:
https://github.com/RealSpeaker/telegraf-session-local/blob/5a6e0a88c077373580638b30f298bced5e4a52ad/examples/extra.js#L33
Gonna fix line 38 right now 👌
@Taoufik-B thanks for catch! What about line 13:
- it's correct, because we're overriding
property
field ofLocalSession
class instance, when callingmiddleware()
:Gonna fix line 38 right now ok_hand
I would avoid to use the line 33 way of doing as the config also specifies that property. It was misleading for @Taoufik-B and for me. Maybe it works but the example should provide a clear way of doing something.
Thanks for feedback. Seems to be it's really misleading.
Will deprecate argument of .middleware()
in next version and remove it from docs and examples completely.
Hello,
Thank you for sharing this project, it really helps me out.
I think there is a small typo in the documentation and examples regarding the full example. When you have used the property 'data', it seems that it has been forgotten to be updated on extra.jsfile, on the following lines:
Thank you again. Taoufik