let thumbnailCard = CardFactory.thumbnailCard(title, text, images) let preview = CardFactory.thumbnailCard(title, text, images) preview.content.tap = { type: 'invoke', value: { title, text, images } }; var attachment = { ...thumbnailCard, preview } attachments.push(attachment);