MessageMediaGeoLive
- class pyrogram.raw.types.MessageMediaGeoLive
Indicates a live geolocation
Constructor of
MessageMedia.- Details:
Layer:
223ID:
B940C666
- Parameters:
geo (
GeoPoint) – Geolocationperiod (
int32-bit) – Validity period of provided geolocationheading (
int32-bit, optional) – For live locations, a direction in which the location moves, in degrees; 1-360proximity_notification_radius (
int32-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.
Upload a file and associate it to a chat (without actually sending it to the chat)
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
├── geo →
GeoPoint│ ├──
GeoPointEmpty│ └──
GeoPoint│ ├── long →
double│ ├── lat →
double│ ├── access_hash →
long│ └── accuracy_radius →
int (optional)├── heading →
int (optional)├── period →
int└── proximity_notification_radius →
int (optional)Example
MessageMediaGeoLive(
geo=GeoPointEmpty(),
period=0,
)