Effect wrapper for Telegram bot library
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
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
