Skip to content

@line/bot-sdkDocs


@line/bot-sdk / ImageMapMessage

Type Alias: ImageMapMessage

ImageMapMessage: MessageCommon & object

Type declaration

actions

actions: ImageMapAction[]

Action when tapped (Max: 50)

altText

altText: string

Alternative text (Max: 400 characters)

baseSize

baseSize: Size

baseUrl

baseUrl: string

Base URL of image (Max: 2000 characters, HTTPS)

type

type: "imagemap"

video?

optional video: object

Video to play inside a image map messages

video.area

area: Area

optional externalLink: object

External link to be displayed after a video is played This property is required if you set a video to play and a label to display after the video on the imagemap

label: string

linkUri: string

video.originalContentUrl

originalContentUrl: string

URL of video file (Max: 2000 characters)

  • HTTPS
  • mp4
  • Max: 1 minute
  • Max: 10 MB

A very wide or tall video may be cropped when played in some environments.

video.previewImageUrl

previewImageUrl: string

URL of preview image (Max: 2000 characters)

  • HTTPS
  • JPEG
  • Max: 240 x 240
  • Max: 1 MB

See

Imagemap message

Defined in

lib/types.ts:823