InputMediaGeoLive

class pyrogram.raw.types.InputMediaGeoLive

Live geolocation

Constructor of InputMedia.

Details:
  • Layer: 223

  • ID: 971FA843

Parameters:
  • geo_point (InputGeoPoint) – Current geolocation

  • stopped (bool, optional) – Whether sending of the geolocation was stopped

  • heading (int 32-bit, optional) – For live locations, a direction in which the location moves, in degrees; 1-360.

  • period (int 32-bit, optional) – Validity period of the current location

  • proximity_notification_radius (int 32-bit, optional) – For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)

TL Schema

inputMediaGeoLive#971fa843
flags:#
stopped:flags.0?true
geo_point:InputGeoPoint
heading:flags.2?int
period:flags.1?int
proximity_notification_radius:flags.3?int

= InputMedia

Parameter Tree

InputMediaGeoLive
├── stoppedtrue (optional)
├── geo_pointInputGeoPoint
│ ├── InputGeoPointEmpty
│ └── InputGeoPoint
│ ├── latdouble
│ ├── longdouble
│ └── accuracy_radiusint (optional)
├── headingint (optional)
├── periodint (optional)
└── proximity_notification_radiusint (optional)

Example

InputMediaGeoLive(
    geo_point=InputGeoPointEmpty(),
)