Commit e9561f11 by Oleksandr Barabash

minor fixs

parent 053f64dd
......@@ -119,12 +119,12 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
# TODO(s1z): create parase for all card types
attachments = [CardFactory.adaptive_card(card)]
activity = Activity(
type=ActivityTypes.message,
text=text,
attachments=attachments,
attachment_layout=AttachmentLayoutTypes.carousel
)
activity = Activity(type=ActivityTypes.message,
text=text, attachments=attachments)
if len(attachments) > 1:
activity.attachment_layout = (
AttachmentLayoutTypes.carousel
)
response = await turn_context.send_activity(activity)
if response:
future.set_result(response)
......
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