Image
An image component is used to display an image inside a messenger card.
🚧 HTTPS Images
If your request URLs (or website URLs) are over HTTPS, you will need to ensure that images are loaded over HTTPS likewise. Otherwise, they will not work.
{ "type": "image", "url": "https://somesite.com/images640_480.png", "width": 640, "height": 480}
Parameter | Possible Values | Required | Function |
---|---|---|---|
id | Any string | No | Unique identifier for the component within this card. |
url | A valid URL | Yes | The URL where the image is located. |
align | left (default)centerright | No | Aligns the image inside the component. |
width | Any number | Yes | Width of the image in pixels. |
height | Any number | Yes | Height of the image in pixels. |
rounded | truefalse (default) | No | Rounds the corners of the image if true. |