MessageMediaGeoLive

class pyrogram.raw.types.MessageMediaGeoLive

Indicates a live geolocation

Constructor of MessageMedia.

Details:
  • Layer: 223

  • ID: B940C666

Parameters:
  • geo (GeoPoint) – Geolocation

  • period (int 32-bit) – Validity period of provided geolocation

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

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

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info ».

TL Schema

messageMediaGeoLive#b940c666
flags:#
geo:GeoPoint
heading:flags.0?int
period:int
proximity_notification_radius:flags.1?int

= MessageMedia

Parameter Tree

MessageMediaGeoLive
├── geoGeoPoint
│ ├── GeoPointEmpty
│ └── GeoPoint
│ ├── longdouble
│ ├── latdouble
│ ├── access_hashlong
│ └── accuracy_radiusint (optional)
├── headingint (optional)
├── periodint
└── proximity_notification_radiusint (optional)

Example

MessageMediaGeoLive(
    geo=GeoPointEmpty(),
    period=0,
)