I implemented the link unfurling example code in my project.
This works for unfurling links pasted in chats, but when I call the sharing feature from @microsoft/teams-js it breaks.
sharing.shareWebContent({
content: [{
url: sharingUrl,
type: 'URL',
message: `Take a look at this item`,
preview: true,
}]
});
This should show a unfurled preview like so:
But that doesn't work because in the request payload sent to the bot the Conversation.ConversationType is missing.
But in a chat the ConversationType is "groupChat" and it works.
JSON deserialization for type 'Microsoft.Teams.Api.Conversation' was missing required properties including: 'conversationType'.