You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my bot I have implemented unfurling. This is accomplished by scanning every incoming message for links, iterating over them, and then posting adaptive cards. What if this process could be abstracted?
The framework could throw an event "LinkAdded" whose handler would look like this
consthandleLinks=asyncevent=>{const{ group, bot, urls }=eventfor(urlofurls){// do stuff for url}}
The point is: make it easier for developers to process links. The same could also be said for any type of message:
events
tasks
notes
code snippets
and so forth
The text was updated successfully, but these errors were encountered:
Another requirement... the framework when extracting URLs should be able to ignore URLs that are included in a response.
Imagine a user sends a URL in a message, then another responds to that message by quoting it. The first URL should be unfurled, but the second URL (really a duplicate of the first) should be ignore.
In my bot I have implemented unfurling. This is accomplished by scanning every incoming message for links, iterating over them, and then posting adaptive cards. What if this process could be abstracted?
The framework could throw an event "LinkAdded" whose handler would look like this
The point is: make it easier for developers to process links. The same could also be said for any type of message:
The text was updated successfully, but these errors were encountered: