InputMediaLocation

class telegram.InputMediaLocation(latitude, longitude, horizontal_accuracy=None, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

Represents a location to be sent.

Added in version 22.8.

Parameters:
type[source]

'location'.

Type:

str

latitude[source]

Latitude of the location.

Type:

float

longitude[source]

Longitude of the location.

Type:

float

horizontal_accuracy[source]

Optional. The radius of uncertainty for the location, measured in meters; 0-1500.

Type:

float