Struggles with Telegraf Wrapper Development
while I was trying to write a functional wrapper for the Telegram bot writing library (Telegraf(https://telegraf.js.org/#md:error-handling)). I realized that I do not have enough knowledge and understanding to curb the model that the library offers.
It is assumed that first we instantiate the Telegraph object, then add handlers and then start listening for messages.
I create streams from message handlers and then work with them - but how do I handle errors and defects in such a way as to ignore them? I hope it will be clearer from the attached sandbox example https://stackblitz.com/edit/effect-ts-examples-xcwmvn
EE class represents Telegraf instance
incoming messages are emulated at startup
having some errors and defects in clients Sink must not interrupt messages handling
is it possible to design a solution in such a way as to ignore the errors of the client side (handlers) as much as possible?
It is assumed that first we instantiate the Telegraph object, then add handlers and then start listening for messages.
I create streams from message handlers and then work with them - but how do I handle errors and defects in such a way as to ignore them? I hope it will be clearer from the attached sandbox example https://stackblitz.com/edit/effect-ts-examples-xcwmvn
EE class represents Telegraf instance
incoming messages are emulated at startup
having some errors and defects in clients Sink must not interrupt messages handling
is it possible to design a solution in such a way as to ignore the errors of the client side (handlers) as much as possible?
