peyk.platforms.telegram.types.rich_block_map

Classes

RichBlockMap([latitude, longitude])

A block with a map, corresponding to the custom HTML tag .

class peyk.platforms.telegram.types.rich_block_map.RichBlockMap(latitude: float = 0.0, longitude: float = 0.0)[source]

Bases: object

A block with a map, corresponding to the custom HTML tag .

Variables:
  • 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 – Caption of the block

latitude: float = 0.0
longitude: float = 0.0
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.