InlineQueryResultLocation

data class InlineQueryResultLocation(id: String, latitude: Float, longitude: Float, title: String, horizontalAccuracy: Float?, livePeriod: Int?, heading: Int?, proximityAlertRadius: Int?, replyMarkup: InlineKeyboardMarkup?, inputMessageContent: InputMessageContent?, thumbUrl: String?, thumbWidth: Int?, thumbHeight: Int?, type: String) : 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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Parameters

id

Unique identifier for this result, 1-64 Bytes

latitude

Location latitude in degrees

longitude

Location longitude in degrees

title

Location title

horizontalAccuracy

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

livePeriod

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

heading

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

proximityAlertRadius

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.

replyMarkup

Optional. Inline keyboard attached to the message

inputMessageContent

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

thumbUrl

Optional. Url of the thumbnail for the result

thumbWidth

Optional. Thumbnail width

thumbHeight

Optional. Thumbnail height

type

Type of the result, must be location

Constructors

InlineQueryResultLocation
Link copied to clipboard
common
fun InlineQueryResultLocation(id: String, latitude: Float, longitude: Float, title: String, horizontalAccuracy: Float? = null, livePeriod: Int? = null, heading: Int? = null, proximityAlertRadius: Int? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, thumbUrl: String? = null, thumbWidth: Int? = null, thumbHeight: Int? = null, type: String)
Unique identifier for this result, 1-64 Bytes

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component10
Link copied to clipboard
common
operator fun component10(): InputMessageContent?
component11
Link copied to clipboard
common
operator fun component11(): String?
component12
Link copied to clipboard
common
operator fun component12(): Int?
component13
Link copied to clipboard
common
operator fun component13(): Int?
component14
Link copied to clipboard
common
operator fun component14(): String
component2
Link copied to clipboard
common
operator fun component2(): Float
component3
Link copied to clipboard
common
operator fun component3(): Float
component4
Link copied to clipboard
common
operator fun component4(): String
component5
Link copied to clipboard
common
operator fun component5(): Float?
component6
Link copied to clipboard
common
operator fun component6(): Int?
component7
Link copied to clipboard
common
operator fun component7(): Int?
component8
Link copied to clipboard
common
operator fun component8(): Int?
component9
Link copied to clipboard
common
operator fun component9(): InlineKeyboardMarkup?
copy
Link copied to clipboard
common
fun copy(id: String, latitude: Float, longitude: Float, title: String, horizontalAccuracy: Float? = null, livePeriod: Int? = null, heading: Int? = null, proximityAlertRadius: Int? = null, replyMarkup: InlineKeyboardMarkup? = null, inputMessageContent: InputMessageContent? = null, thumbUrl: String? = null, thumbWidth: Int? = null, thumbHeight: Int? = null, type: String): InlineQueryResultLocation
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

heading
Link copied to clipboard
common
val heading: Int? = null
Optional.
horizontalAccuracy
Link copied to clipboard
common
val horizontalAccuracy: Float? = null
Optional.
id
Link copied to clipboard
common
val id: String
Unique identifier for this result, 1-64 Bytes
inputMessageContent
Link copied to clipboard
common
val inputMessageContent: InputMessageContent? = null
Optional.
latitude
Link copied to clipboard
common
val latitude: Float
Location latitude in degrees
livePeriod
Link copied to clipboard
common
val livePeriod: Int? = null
Optional.
longitude
Link copied to clipboard
common
val longitude: Float
Location longitude in degrees
proximityAlertRadius
Link copied to clipboard
common
val proximityAlertRadius: Int? = null
Optional.
replyMarkup
Link copied to clipboard
common
val replyMarkup: InlineKeyboardMarkup? = null
Optional.
thumbHeight
Link copied to clipboard
common
val thumbHeight: Int? = null
Optional.
thumbUrl
Link copied to clipboard
common
val thumbUrl: String? = null
Optional.
thumbWidth
Link copied to clipboard
common
val thumbWidth: Int? = null
Optional.
title
Link copied to clipboard
common
val title: String
Location title
type
Link copied to clipboard
common
val type: String
Type of the result, must be location