Skip to content

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

Class: InlineQueryResultLocation ​

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

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:4489

Parameters ​

ParameterType
payloadTelegramInlineQueryResultLocation

Returns ​

InlineQueryResultLocation

Properties ​

PropertyTypeDefined in
payloadTelegramInlineQueryResultLocationcontexts/index.d.ts:4488

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


heading ​

Get Signature ​

get heading(): number

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

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:4515

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:4499

Unique identifier for this result, 1-64 Bytes

Returns ​

string


inputMessageContent ​

Get Signature ​

get inputMessageContent(): TelegramInputMessageContent

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

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:4503

Location latitude in degrees

Returns ​

number


livePeriod ​

Get Signature ​

get livePeriod(): number

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

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:4507

Location longitude in degrees

Returns ​

number


proximityAlertRadius ​

Get Signature ​

get proximityAlertRadius(): number

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

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:4531

Optional. Inline keyboard attached to the message

Returns ​

InlineKeyboardMarkup


thumbnailHeight ​

Get Signature ​

get thumbnailHeight(): number

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

Optional. Thumbnail height

Returns ​

number


thumbnailUrl ​

Get Signature ​

get thumbnailUrl(): string

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

Optional. Url of the thumbnail for the result

Returns ​

string


thumbnailWidth ​

Get Signature ​

get thumbnailWidth(): number

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

Optional. Thumbnail width

Returns ​

number


title ​

Get Signature ​

get title(): string

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

Location title

Returns ​

string


type ​

Get Signature ​

get type(): "location"

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

Type of the result, must be location

Returns ​

"location"