peyk.platforms.telegram.types.input_media_location

Classes

InputMediaLocation(latitude, longitude[, ...])

Represents a location to be sent.

class peyk.platforms.telegram.types.input_media_location.InputMediaLocation(latitude: float, longitude: float, horizontal_accuracy: float | None = None)[source]

Bases: object

Represents a location to be sent.

Variables:
  • type – Type of the media, must be location

  • latitude (float) – Latitude of the location

  • longitude (float) – Longitude of the location

  • horizontal_accuracy (float | None) – The radius of uncertainty for the location, measured in meters; 0-1500

latitude: float
longitude: float
horizontal_accuracy: float | None = None
to_dict() Dict[str, object][source]

Serialize this type to the Telegram API request shape.

Returns:

A JSON-compatible mapping representing this value.