ExGram.Model.RichBlockMap (ex_gram v0.67.0)

Copy Markdown View Source

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

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; 13-20
  • width: Expected width of the map
  • height: Expected height of the map
  • caption (optional): Optional. Caption of the block

Summary

Types

t()

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

Functions

decode_as()