2020-11-04 17:10:39 +00:00
|
|
|
package dev.inmo.tgbotapi.types
|
|
|
|
|
2020-11-04 19:12:14 +00:00
|
|
|
import dev.inmo.tgbotapi.types.location.StaticLocation
|
2020-11-04 17:10:39 +00:00
|
|
|
import kotlinx.serialization.SerialName
|
|
|
|
import kotlinx.serialization.Serializable
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a location to which a chat is connected.
|
|
|
|
*
|
|
|
|
* @see dev.inmo.tgbotapi.requests.chat.get.GetChat
|
2022-04-21 18:16:41 +00:00
|
|
|
* @see dev.inmo.tgbotapi.types.chat.ExtendedSupergroupChat
|
2020-11-04 17:10:39 +00:00
|
|
|
*/
|
|
|
|
@Serializable
|
|
|
|
data class ChatLocation(
|
|
|
|
@SerialName(locationField)
|
2020-11-04 19:12:14 +00:00
|
|
|
val location: StaticLocation,
|
2020-11-04 17:10:39 +00:00
|
|
|
@SerialName(addressField)
|
|
|
|
val address: String
|
|
|
|
)
|