Package dev.inmo.tgbotapi.types.location

Types

Link copied to clipboard
data class LiveLocation(    val longitude: Double,     val latitude: Double,     val horizontalAccuracy: Meters? = null,     val livePeriod: Seconds,     val heading: Degrees? = null,     val proximityAlertRadius: Meters? = null) : Location, Livable, ProximityAlertable, Headed
Link copied to clipboard
interface Location : Locationed, HorizontallyAccured

Common interface for any known telegram location. Use LocationSerializer in case you wish to serialize/deserialize Location

Link copied to clipboard
object LocationSerializer : KSerializer<Location>
Link copied to clipboard
data class StaticLocation(    val longitude: Double,     val latitude: Double,     val horizontalAccuracy: Meters? = null) : Location