Rich messages

RichBlockMap

A block with a map, corresponding to the custom HTML tag <tg-map>.

fields

fieldtyperequireddescription
typestringrequiredType of the block, always “map”
locationLocationrequiredLocation of the center of the map
zoomnumberrequiredMap zoom level; 13-20
widthnumberrequiredExpected width of the map
heightnumberrequiredExpected height of the map
captionRichBlockCaptionoptionalOptional. Caption of the block

import

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

used by

types