MediaGallery
A component for displaying multiple images in a gallery format.
The MediaGallery component allows you to display multiple images in a gallery layout within your messages. It's useful for showcasing collections of images or related visual content.
Component Structure
A MediaGallery is defined by its array of image items. Each item must have a URL that can point to either an external image or an attachment in the message.
Creating a MediaGallery
To create a media gallery, you instantiate the MediaGallery
class with an array of image items:
Usage Example
Here's how you might use MediaGallery in a command:
Edit on GitHub
Last updated on