GramIO API Reference / @gramio/contexts/dist / InlineQueryResultLocation
Class: InlineQueryResultLocation
Defined in: contexts/index.d.ts:4133
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.
Constructors
Constructor
new InlineQueryResultLocation(
payload):InlineQueryResultLocation
Defined in: contexts/index.d.ts:4135
Parameters
| Parameter | Type |
|---|---|
payload | TelegramInlineQueryResultLocation |
Returns
InlineQueryResultLocation
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramInlineQueryResultLocation | contexts/index.d.ts:4134 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4137
Returns
string
heading
Get Signature
get heading():
number
Defined in: contexts/index.d.ts:4169
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:4161
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:4145
Unique identifier for this result, 1-64 Bytes
Returns
string
inputMessageContent
Get Signature
get inputMessageContent():
TelegramInputMessageContent
Defined in: contexts/index.d.ts:4181
Optional. Content of the message to be sent instead of the location
Returns
latitude
Get Signature
get latitude():
number
Defined in: contexts/index.d.ts:4149
Location latitude in degrees
Returns
number
livePeriod
Get Signature
get livePeriod():
number
Defined in: contexts/index.d.ts:4165
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:4153
Location longitude in degrees
Returns
number
proximityAlertRadius
Get Signature
get proximityAlertRadius():
number
Defined in: contexts/index.d.ts:4173
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:4177
Optional. Inline keyboard attached to the message
Returns
thumbnailHeight
Get Signature
get thumbnailHeight():
number
Defined in: contexts/index.d.ts:4193
Optional. Thumbnail height
Returns
number
thumbnailUrl
Get Signature
get thumbnailUrl():
string
Defined in: contexts/index.d.ts:4185
Optional. Url of the thumbnail for the result
Returns
string
thumbnailWidth
Get Signature
get thumbnailWidth():
number
Defined in: contexts/index.d.ts:4189
Optional. Thumbnail width
Returns
number
title
Get Signature
get title():
string
Defined in: contexts/index.d.ts:4157
Location title
Returns
string
type
Get Signature
get type():
"location"
Defined in: contexts/index.d.ts:4141
Type of the result, must be location
Returns
"location"