Rich messages

InputRichBlockMap

A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must not exceed 10000 in total. The width and height ratio must be at most 20.

fields

fieldtyperequireddescription
typestringrequiredType of the block, always “map”
locationLocationrequiredLocation of the center of the map
zoomnumberoptionalOptional. Map zoom level; 0-24
widthnumberoptionalOptional. Map width; 0-10000
heightnumberoptionalOptional. Map height; 0-10000
captionRichBlockCaptionoptionalOptional. Caption of the block

import

types.ts
import type { InputRichBlockMap } from "@yaebal/types";

used by

types