ExGram.Model.InputRichBlockMap (ex_gram v0.69.0)

Copy Markdown View Source

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.

Check the documentation of this model on Telegram Bot API

  • type: Type of the block, always "map”
  • location: Location of the center of the map
  • zoom: Map zoom level; 0-24
  • width: Map width; 0-10000
  • height: Map height; 0-10000
  • caption (optional): Optional. Caption of the block

Summary

Types

t()

@type t() :: %ExGram.Model.InputRichBlockMap{
  caption: ExGram.Model.RichBlockCaption.t() | nil,
  height: integer(),
  location: ExGram.Model.Location.t(),
  type: String.t(),
  width: integer(),
  zoom: integer()
}

Functions

decode_as()