SendLocationRequest

data class SendLocationRequest(chat_id: String, latitude: Float, longitude: Float, horizontal_accuracy: Float?, live_period: Long?, heading: Long?, proximity_alert_radius: Long?, disable_notification: Boolean?, reply_to_message_id: Long?, allow_sending_without_reply: Boolean?, reply_markup: KeyboardOption?) : TelegramRequest

Use this method to send point on the map. On success, the sent Message is returned.

Constructors

SendLocationRequest
Link copied to clipboard
fun SendLocationRequest(chat_id: String, latitude: Float, longitude: Float, horizontal_accuracy: Float? = null, live_period: Long? = null, heading: Long? = null, proximity_alert_radius: Long? = null, disable_notification: Boolean? = null, reply_to_message_id: Long? = null, allow_sending_without_reply: Boolean? = null, reply_markup: KeyboardOption? = null)

Properties

allow_sending_without_reply
Link copied to clipboard
val allow_sending_without_reply: Boolean? = null
Pass True, if the message should be sent even if the specified replied-to message is not found
chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
disable_notification
Link copied to clipboard
val disable_notification: Boolean? = null
Sends the message
heading
Link copied to clipboard
val heading: Long? = null
For live locations, a direction in which the user is moving, in degrees.
horizontal_accuracy
Link copied to clipboard
val horizontal_accuracy: Float? = null
The radius of uncertainty for the location, measured in meters; 0-1500
latitude
Link copied to clipboard
val latitude: Float
Latitude of the location
live_period
Link copied to clipboard
val live_period: Long? = null
Period in seconds for which the location will be updated (see
longitude
Link copied to clipboard
val longitude: Float
Longitude of the location
proximity_alert_radius
Link copied to clipboard
val proximity_alert_radius: Long? = null
For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
reply_markup
Link copied to clipboard
val reply_markup: KeyboardOption? = null
Additional interface options.
reply_to_message_id
Link copied to clipboard
val reply_to_message_id: Long? = null
If the message is a reply, ID of the original message