Closed ofarukcaki closed 6 years ago
Also my full codes are in here https://github.com/OFarukCaki/deneme
@OFarukCaki Think of this as a design problem rather than a HeroCard problem.
You're not really using any of the features of the HeroCard template, like buttons, images, and card actions, so why do you need the HeroCard at all?
If you are only sending text, use normal messages instead of multiple HeroCards packed into a carousel layout.
Example:
let messageWithText = {
type: "message",
text: "**Message Title**\n\nLarge amount of text goes here..."
}
session.send(messageWithText);
@nwhitmont Thanks for your comment. I'm gonna try it now
@nwhitmont, How can I add more than 1 normal messages in carousel format, I can't find any documentation and I can't figure out
`var msg = new builder.Message(session); msg.attachmentLayout(builder.AttachmentLayout.carousel) msg.attachments([
......
]);`
How can I place my items inside that code block?
@OFarukCaki You can only have cards or images in a carousel layout, it is not intended for use with text-only messages.
You can put attachment objects inside the array of attachments like this:
msg.attachments([
{
contentType: 'image/png',
contentUrl: 'https://example.com/img/your_image.png',
name: 'example image attachment'
},
{
contentType: 'image/png',
contentUrl: 'https://example.com/img/your_image.png',
name: 'example image attachment'
}
])
reopen if you still have questions
Bot Info
Issue Description
I created my app, I have a hero card inside my chatbot and it just works fine in emulator. But in other platforms my bots are truncating my text inside cards. Here is a screenshot : https://i.hizliresim.com/ROgLrZ.png
In the Emulator it is just fine: https://i.hizliresim.com/DyOVOZ.png
Code Example
Expected Behavior
Text inside the cards should be fully viewable
How can I fix my this issue?