fix of InlineQuery offset type

This commit is contained in:
InsanusMokrassar committed 2019-02-07 19:12:26 +08:00
1 parent 8aed45ae9e
commit f83921223e
4 files changed
+4 -4

No files matched your search

@@ -7,5 +7,5 @@ interface InlineQuery {
val id: InlineQueryIdentifier
val from: User
val query: String
val offset: Long
val offset: String
}
@@ -8,5 +8,5 @@ data class BaseInlineQuery(
override val id: InlineQueryIdentifier,
override val from: User,
override val query: String,
override val offset: Long
override val offset: String
) : InlineQuery
@@ -7,6 +7,6 @@ data class LocationInlineQuery(
override val id: InlineQueryIdentifier,
override val from: User,
override val query: String,
override val offset: Long,
override val offset: String,
val location: Location
) : InlineQuery
@@ -12,7 +12,7 @@ data class RawInlineQuery(
@SerialName(queryField)
val query: String,
@SerialName(offsetField)
val offset: Long,
val offset: String,
@SerialName(locationField)
@Optional
val location: Location? = null