1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-03 00:15:27 +00:00
tgbotapi/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/ChatLocation.kt

20 lines
509 B
Kotlin
Raw Normal View History

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
)