Teams App - Get called when a user sends a message with a card created by search extension or unfurl

%3CLINGO-SUB%20id%3D%22lingo-sub-1489622%22%20slang%3D%22en-US%22%3ETeams%20App%20-%20Get%20called%20when%20a%20user%20sends%20a%20message%20with%20a%20card%20created%20by%20search%20extension%20or%20unfurl%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1489622%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20have%20implemented%20a%20Teams%20App%20which%20has%20a%20search%20extension%20and%20an%20unfurl%20action.%20We%20do%20not%20have%20a%20conversational%20bot%20implemented.%3CBR%20%2F%3EWith%20both%20(search%20extension%20and%20unfurl%20action)%20we%20create%20a%20card%20which%20can%20be%20posted%20by%20the%20user%20in%20a%20message.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWhat%20I%20want%20to%20know%20is%20that%20is%20there%20any%20possiblity%20to%20get%20called%20when%20the%20user%20posts%20that%20message%20containing%20our%20card%3F%20The%20purpose%20would%20be%20to%20track%20in%20which%20channels%20the%20content%20created%20by%20our%20Teams%20App%20would%20be%20posted%20to.%3CBR%20%2F%3EAnd%20if%20that%20is%20possible%2C%20I%20want%20to%20know%20how%20to%20create%20a%20permanent%2Fdeep%20link%20to%20the%20channel%20the%20message%20was%20posted%20to.%3CBR%20%2F%3E%3CBR%20%2F%3ETracking%20this%20when%20the%20content%20is%20created%20is%20not%20the%20correct%20place%20as%20the%20user%20may%20cancel%20posting%20the%20content%2C%20and%20in%20a%20search%20extension%20I%20could%20not%20find%20a%20way%20even%20to%20be%20called%20when%20the%20user%20picks%20one%20of%20the%20search%20results.%3CBR%20%2F%3E%3CBR%20%2F%3EIdeally%20whe%20would%20be%20called%20with%20the%20content%20of%20a%20message%20whenever%20a%20user%20who%20has%20installed%20our%20App%20posts%20a%20message%20to%20any%20channel%2C%20but%20this%20seems%20not%20to%20be%20possible%20for%20now%2C%20as%20I%20read%20there%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-sdk%2Fissues%2F5387%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2Fbotframework-sdk%2Fissues%2F5387%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%2C%3CBR%20%2F%3EDominik%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1489622%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBot%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMessage%20Extension%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUnfurl%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hello!

We have implemented a Teams App which has a search extension and an unfurl action. We do not have a conversational bot implemented.
With both (search extension and unfurl action) we create a card which can be posted by the user in a message.


What I want to know is that is there any possiblity to get called when the user posts that message containing our card? The purpose would be to track in which channels the content created by our Teams App would be posted to.
And if that is possible, I want to know how to create a permanent/deep link to the channel the message was posted to.

Tracking this when the content is created is not the correct place as the user may cancel posting the content, and in a search extension I could not find a way even to be called when the user picks one of the search results.

Ideally whe would be called with the content of a message whenever a user who has installed our App posts a message to any channel, but this seems not to be possible for now, as I read there:

https://github.com/microsoft/botframework-sdk/issues/5387

Regards,
Dominik

1 Reply
Highlighted

@dominikhoelzl , Currently Bot receives an event only when it is @mentioned. It is not possible to track all messages in a channel. 

This is an interesting use case though. You could make a features suggestions on the Microsoft Teams feedback portal on UserVoice.