Commit 7323958b by Oleksandr Barabash

link_card header fixed

parent 7952b611
...@@ -393,7 +393,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -393,7 +393,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
url = f"https://{AppConfig.MARS_FQDN}/service-auth" url = f"https://{AppConfig.MARS_FQDN}/service-auth"
card = CardHelper.load_assets_card("link_card", card = CardHelper.load_assets_card("link_card",
context=dict(title=title, context=dict(title=title,
url=url)) url=url,
header=header))
attachments = [CardFactory.adaptive_card(card)] attachments = [CardFactory.adaptive_card(card)]
await turn_context.send_activity( await turn_context.send_activity(
Activity(type=ActivityTypes.message, attachments=attachments) Activity(type=ActivityTypes.message, attachments=attachments)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment