telegram.InlineQueryResultLocation

class telegram.InlineQueryResultLocation(*args, **kwargs)[source]

Bases: telegram.InlineQueryResult

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

Parameters
type[source]

'location'.

Type

str

id[source]

Unique identifier for this result, 1-64 bytes.

Type

str

latitude[source]

Location latitude in degrees.

Type

float

longitude[source]

Location longitude in degrees.

Type

float

title[source]

Location title.

Type

str

horizontal_accuracy[source]

Optional. The radius of uncertainty for the location, measured in meters.

Type

float

live_period[source]

Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.

Type

int

heading[source]

Optional. For live locations, a direction in which the user is moving, in degrees.

Type

int

proximity_alert_radius[source]

Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.

Type

int

reply_markup[source]

Optional. Inline keyboard attached to the message.

Type

telegram.InlineKeyboardMarkup

input_message_content[source]

Optional. Content of the message to be sent instead of the location.

Type

telegram.InputMessageContent

thumb_url[source]

Optional. Url of the thumbnail for the result.

Type

str

thumb_width[source]

Optional. Thumbnail width.

Type

int

thumb_height[source]

Optional. Thumbnail height.

Type

int