Skip to content

GramIO API Reference / @gramio/contexts/dist / InlineQueryResultLocation

Class: InlineQueryResultLocation

Defined in: contexts/index.d.ts:4004

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.

Documentation

Constructors

Constructor

new InlineQueryResultLocation(payload): InlineQueryResultLocation

Defined in: contexts/index.d.ts:4006

Parameters

ParameterType
payloadTelegramInlineQueryResultLocation

Returns

InlineQueryResultLocation

Properties

PropertyTypeDefined in
payloadTelegramInlineQueryResultLocationcontexts/index.d.ts:4005

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:4008

MDN

Returns

string


heading

Get Signature

get heading(): number

Defined in: contexts/index.d.ts:4040

Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

Returns

number


horizontalAccuracy

Get Signature

get horizontalAccuracy(): number

Defined in: contexts/index.d.ts:4032

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

Returns

number


id

Get Signature

get id(): string

Defined in: contexts/index.d.ts:4016

Unique identifier for this result, 1-64 Bytes

Returns

string


inputMessageContent

Get Signature

get inputMessageContent(): TelegramInputMessageContent

Defined in: contexts/index.d.ts:4052

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

Returns

TelegramInputMessageContent


latitude

Get Signature

get latitude(): number

Defined in: contexts/index.d.ts:4020

Location latitude in degrees

Returns

number


livePeriod

Get Signature

get livePeriod(): number

Defined in: contexts/index.d.ts:4036

Optional. Period in seconds during which the location can be updated, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.

Returns

number


longitude

Get Signature

get longitude(): number

Defined in: contexts/index.d.ts:4024

Location longitude in degrees

Returns

number


proximityAlertRadius

Get Signature

get proximityAlertRadius(): number

Defined in: contexts/index.d.ts:4044

Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

Returns

number


replyMarkup

Get Signature

get replyMarkup(): InlineKeyboardMarkup

Defined in: contexts/index.d.ts:4048

Optional. Inline keyboard attached to the message

Returns

InlineKeyboardMarkup


thumbnailHeight

Get Signature

get thumbnailHeight(): number

Defined in: contexts/index.d.ts:4064

Optional. Thumbnail height

Returns

number


thumbnailUrl

Get Signature

get thumbnailUrl(): string

Defined in: contexts/index.d.ts:4056

Optional. Url of the thumbnail for the result

Returns

string


thumbnailWidth

Get Signature

get thumbnailWidth(): number

Defined in: contexts/index.d.ts:4060

Optional. Thumbnail width

Returns

number


title

Get Signature

get title(): string

Defined in: contexts/index.d.ts:4028

Location title

Returns

string


type

Get Signature

get type(): "location"

Defined in: contexts/index.d.ts:4012

Type of the result, must be location

Returns

"location"