A point on the map

Hierarchy (View Summary)

Constructors

Properties

type: "live_location" = ...

Accessors

  • get heading(): null | number
  • A direction in which the location moves, in degrees; 1-360

    Returns null | number

  • get inputMedia(): TypeInputMedia
  • Input media TL object generated from this object, to be used inside InputMediaLike and TelegramClient.sendMedia

    Note that using this will result in an independent live geolocation, which will not be auto-updated with the current

    Returns TypeInputMedia

  • get latitude(): number
  • Geo point latitude

    Returns number

  • get longitude(): number
  • Geo point longitude

    Returns number

  • get period(): number
  • Validity period of provided geolocation

    Returns number

  • get radius(): number
  • Accuracy radius in meters.

    Returns number

Methods

  • Create FileLocation containing server-generated image with the map preview

    Parameters

    • params: { height?: number; scale?: number; width?: number; zoom?: number } = {}
      • Optionalheight?: number

        Map height in pixels before applying scale (16-1024)

        128

      • Optionalscale?: number

        Map scale (1-3)

        1

      • Optionalwidth?: number

        Map width in pixels before applying scale (16-1024)

        128

      • Optionalzoom?: number

        Map zoom level (13-20)

        15

    Returns FileLocation