Image

BlockAdvanced Messages

Single media item in a gallery or a thumbnail accessory.

Inputs

URLRequired

URL of the media item.

Example: https://example.com/media.png

Description

Alt text for the media, max 1024 characters.

Example: A beautiful sunset over the ocean.

Spoiler

Whether the media item should be a spoiler.

Example: true

Where it goes

This block can only be placed inside Section or Gallery.

Build a bot using blocks like Image

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: advmsgcmp_media_image
  • Can only be placed inside advmsgcmp_layout_section (accessory), advmsgcmp_layout_gallery (children).

Inputs

FieldInventScript nameValue
URLurle.g. "https://example.com/media.png"
Descriptiondescriptione.g. "A beautiful sunset over the ocean."
Spoilerspoilere.g. "true"

Example InventScript

advmsgcmp_layout_section(Args{
	accessory: func() {
		advmsgcmp_media_image(Args{url: "https://example.com/media.png"})
	},
})

More advanced messages blocks