I want to create a Telegram chat board and launch it on my canister. It required to create a listener that run in the background and get triggers wherever there will be a message sent on telegram.
The issue is I want this listener to run all the time
If telegram has hooks for messsages you should be able to use @Gekctek new http thingy to grab those and then process the event.
2 Likes
I am assuming you are talking about doing this on a front-end canister.
Sounds like you want a service worker which intercepts any traffic to telegram, and triggers a callback function. Just note that if the function is going to be making an authenticated call to a canister, that they will most likely have to re-authenticate prior.