InlineQueryResultLocation

data class InlineQueryResultLocation(type: String, id: String, latitude: Float, longitude: Float, title: String, horizontal_accuracy: Float?, live_period: Long?, heading: Long?, proximity_alert_radius: Long?, reply_markup: InlineKeyboardMarkup?, input_message_content: InputMessageContent?, thumb_url: String?, thumb_width: Long?, thumb_height: Long?) : 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.

Constructors

InlineQueryResultLocation
Link copied to clipboard
fun InlineQueryResultLocation(type: String, id: String, latitude: Float, longitude: Float, title: String, horizontal_accuracy: Float? = null, live_period: Long? = null, heading: Long? = null, proximity_alert_radius: Long? = null, reply_markup: InlineKeyboardMarkup? = null, input_message_content: InputMessageContent? = null, thumb_url: String? = null, thumb_width: Long? = null, thumb_height: Long? = null)

Properties

heading
Link copied to clipboard
val heading: Long? = null
Optional.
horizontal_accuracy
Link copied to clipboard
val horizontal_accuracy: Float? = null
Optional.
id
Link copied to clipboard
val id: String
Unique identifier for this result, 1-64 Bytes
input_message_content
Link copied to clipboard
val input_message_content: InputMessageContent? = null
Optional.
latitude
Link copied to clipboard
val latitude: Float
Location latitude in degrees
live_period
Link copied to clipboard
val live_period: Long? = null
Optional.
longitude
Link copied to clipboard
val longitude: Float
Location longitude in degrees
proximity_alert_radius
Link copied to clipboard
val proximity_alert_radius: Long? = null
Optional.
reply_markup
Link copied to clipboard
val reply_markup: InlineKeyboardMarkup? = null
Optional.
thumb_height
Link copied to clipboard
val thumb_height: Long? = null
Optional.
thumb_url
Link copied to clipboard
val thumb_url: String? = null
Optional.
thumb_width
Link copied to clipboard
val thumb_width: Long? = null
Optional.
title
Link copied to clipboard
val title: String
Location title
type
Link copied to clipboard
val type: String
Type of the result, must be location