mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
remove optional
This commit is contained in:
parent
ddd7425033
commit
c40e857a23
@ -1,16 +1,11 @@
|
|||||||
package com.github.insanusmokrassar.TelegramBotAPI.bot.settings
|
package com.github.insanusmokrassar.TelegramBotAPI.bot.settings
|
||||||
|
|
||||||
import kotlinx.serialization.Optional
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ProxySettings(
|
data class ProxySettings(
|
||||||
@Optional
|
|
||||||
val host: String = "localhost",
|
val host: String = "localhost",
|
||||||
@Optional
|
|
||||||
val port: Int = 1080,
|
val port: Int = 1080,
|
||||||
@Optional
|
|
||||||
val username: String? = null,
|
val username: String? = null,
|
||||||
@Optional
|
|
||||||
val password: String? = null
|
val password: String? = null
|
||||||
)
|
)
|
||||||
|
@ -14,13 +14,9 @@ private object CompleteRequest : RequestEvent()
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class PowLimiter(
|
data class PowLimiter(
|
||||||
@Optional
|
|
||||||
private val minAwaitTime: Long = 0L,
|
private val minAwaitTime: Long = 0L,
|
||||||
@Optional
|
|
||||||
private val maxAwaitTime: Long = 10000L,
|
private val maxAwaitTime: Long = 10000L,
|
||||||
@Optional
|
|
||||||
private val powValue: Double = 4.0,
|
private val powValue: Double = 4.0,
|
||||||
@Optional
|
|
||||||
private val powK: Double = 0.0016
|
private val powK: Double = 0.0016
|
||||||
) : RequestLimiter {
|
) : RequestLimiter {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -14,7 +14,6 @@ data class ForwardMessage(
|
|||||||
@SerialName(messageIdField)
|
@SerialName(messageIdField)
|
||||||
val messageId: MessageIdentifier,
|
val messageId: MessageIdentifier,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
val disableNotification: Boolean = false
|
val disableNotification: Boolean = false
|
||||||
): SimpleRequest<RawMessage> {
|
): SimpleRequest<RawMessage> {
|
||||||
override fun method(): String = "forwardMessage"
|
override fun method(): String = "forwardMessage"
|
||||||
|
@ -28,13 +28,9 @@ const val UPDATE_PRE_CHECKOUT_QUERY = com.github.insanusmokrassar.TelegramBotAPI
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class GetUpdates(
|
data class GetUpdates(
|
||||||
@Optional
|
|
||||||
val offset: UpdateIdentifier? = null,// set `last update id + 1` to receive next part of updates
|
val offset: UpdateIdentifier? = null,// set `last update id + 1` to receive next part of updates
|
||||||
@Optional
|
|
||||||
val limit: Int? = null,
|
val limit: Int? = null,
|
||||||
@Optional
|
|
||||||
val timeout: Int? = null,
|
val timeout: Int? = null,
|
||||||
@Optional
|
|
||||||
val allowed_updates: List<String>? = ALL_UPDATES_LIST
|
val allowed_updates: List<String>? = ALL_UPDATES_LIST
|
||||||
): SimpleRequest<List<RawUpdate>> {
|
): SimpleRequest<List<RawUpdate>> {
|
||||||
override fun method(): String = "getUpdates"
|
override fun method(): String = "getUpdates"
|
||||||
|
@ -11,16 +11,12 @@ data class AnswerCallbackQuery(
|
|||||||
@SerialName(callbackQueryIdField)
|
@SerialName(callbackQueryIdField)
|
||||||
val callbackQueryId: CallbackQueryIdentifier,
|
val callbackQueryId: CallbackQueryIdentifier,
|
||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
@Optional
|
|
||||||
val text: String? = null,
|
val text: String? = null,
|
||||||
@SerialName(showAlertField)
|
@SerialName(showAlertField)
|
||||||
@Optional
|
|
||||||
val showAlert: Boolean? = null,
|
val showAlert: Boolean? = null,
|
||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
@Optional
|
|
||||||
val url: String? = null,
|
val url: String? = null,
|
||||||
@SerialName(cachedTimeField)
|
@SerialName(cachedTimeField)
|
||||||
@Optional
|
|
||||||
val cachedTimeSeconds: Int? = null
|
val cachedTimeSeconds: Int? = null
|
||||||
) : SimpleRequest<Boolean> {
|
) : SimpleRequest<Boolean> {
|
||||||
override fun method(): String = "answerCallbackQuery"
|
override fun method(): String = "answerCallbackQuery"
|
||||||
|
@ -17,19 +17,14 @@ data class AnswerInlineQuery(
|
|||||||
@SerialName(resultsField)
|
@SerialName(resultsField)
|
||||||
val results: List<InlineQueryResult> = emptyList(),
|
val results: List<InlineQueryResult> = emptyList(),
|
||||||
@SerialName(cachedTimeField)
|
@SerialName(cachedTimeField)
|
||||||
@Optional
|
|
||||||
val cachedTime: Int? = null,
|
val cachedTime: Int? = null,
|
||||||
@SerialName(isPersonalField)
|
@SerialName(isPersonalField)
|
||||||
@Optional
|
|
||||||
val isPersonal: Boolean? = null,
|
val isPersonal: Boolean? = null,
|
||||||
@SerialName(nextOffsetField)
|
@SerialName(nextOffsetField)
|
||||||
@Optional
|
|
||||||
val nextOffset: String? = null,
|
val nextOffset: String? = null,
|
||||||
@SerialName(switchPmTextField)
|
@SerialName(switchPmTextField)
|
||||||
@Optional
|
|
||||||
val switchPmText: String? = null,
|
val switchPmText: String? = null,
|
||||||
@SerialName(switchPmParameterField)
|
@SerialName(switchPmParameterField)
|
||||||
@Optional
|
|
||||||
val switchPmParameter: String? = null
|
val switchPmParameter: String? = null
|
||||||
): SimpleRequest<Boolean> {
|
): SimpleRequest<Boolean> {
|
||||||
override fun method(): String = "answerInlineQuery"
|
override fun method(): String = "answerInlineQuery"
|
||||||
|
@ -13,7 +13,6 @@ data class KickChatMember(
|
|||||||
@SerialName(userIdField)
|
@SerialName(userIdField)
|
||||||
override val userId: UserId,
|
override val userId: UserId,
|
||||||
@SerialName(untilDateField)
|
@SerialName(untilDateField)
|
||||||
@Optional
|
|
||||||
override val untilDate: TelegramDate? = null
|
override val untilDate: TelegramDate? = null
|
||||||
) : ChatMemberRequest<Boolean>, UntilDate {
|
) : ChatMemberRequest<Boolean>, UntilDate {
|
||||||
override fun method(): String = "kickChatMember"
|
override fun method(): String = "kickChatMember"
|
||||||
|
@ -13,31 +13,22 @@ data class PromoteChatMember(
|
|||||||
@SerialName(userIdField)
|
@SerialName(userIdField)
|
||||||
override val userId: UserId,
|
override val userId: UserId,
|
||||||
@SerialName(untilDateField)
|
@SerialName(untilDateField)
|
||||||
@Optional
|
|
||||||
override val untilDate: TelegramDate? = null,
|
override val untilDate: TelegramDate? = null,
|
||||||
@SerialName(canChangeInfoField)
|
@SerialName(canChangeInfoField)
|
||||||
@Optional
|
|
||||||
private val canChangeInfo: Boolean? = null,
|
private val canChangeInfo: Boolean? = null,
|
||||||
@SerialName(canPostMessagesField)
|
@SerialName(canPostMessagesField)
|
||||||
@Optional
|
|
||||||
private val canPostMessages: Boolean? = null,
|
private val canPostMessages: Boolean? = null,
|
||||||
@SerialName(canEditMessagesField)
|
@SerialName(canEditMessagesField)
|
||||||
@Optional
|
|
||||||
private val canEditMessages: Boolean? = null,
|
private val canEditMessages: Boolean? = null,
|
||||||
@SerialName(canDeleteMessagesField)
|
@SerialName(canDeleteMessagesField)
|
||||||
@Optional
|
|
||||||
private val canDeleteMessages: Boolean? = null,
|
private val canDeleteMessages: Boolean? = null,
|
||||||
@SerialName(canInviteUsersField)
|
@SerialName(canInviteUsersField)
|
||||||
@Optional
|
|
||||||
private val canInviteUsers: Boolean? = null,
|
private val canInviteUsers: Boolean? = null,
|
||||||
@SerialName(canRestrictMembersField)
|
@SerialName(canRestrictMembersField)
|
||||||
@Optional
|
|
||||||
private val canRestrictMembers: Boolean? = null,
|
private val canRestrictMembers: Boolean? = null,
|
||||||
@SerialName(canPinMessagesField)
|
@SerialName(canPinMessagesField)
|
||||||
@Optional
|
|
||||||
private val canPinMessages: Boolean? = null,
|
private val canPinMessages: Boolean? = null,
|
||||||
@SerialName(canPromoteMembersField)
|
@SerialName(canPromoteMembersField)
|
||||||
@Optional
|
|
||||||
private val canPromoteMembers: Boolean? = null
|
private val canPromoteMembers: Boolean? = null
|
||||||
) : ChatMemberRequest<Boolean>, UntilDate {
|
) : ChatMemberRequest<Boolean>, UntilDate {
|
||||||
override fun method(): String = "promoteChatMember"
|
override fun method(): String = "promoteChatMember"
|
||||||
|
@ -13,19 +13,14 @@ data class RestrictChatMember(
|
|||||||
@SerialName(userIdField)
|
@SerialName(userIdField)
|
||||||
override val userId: UserId,
|
override val userId: UserId,
|
||||||
@SerialName(untilDateField)
|
@SerialName(untilDateField)
|
||||||
@Optional
|
|
||||||
override val untilDate: TelegramDate? = null,
|
override val untilDate: TelegramDate? = null,
|
||||||
@SerialName(canSendMessagesField)
|
@SerialName(canSendMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendMessages: Boolean? = null,
|
private val canSendMessages: Boolean? = null,
|
||||||
@SerialName(canSendMediaMessagesField)
|
@SerialName(canSendMediaMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendMediaMessages: Boolean? = null,
|
private val canSendMediaMessages: Boolean? = null,
|
||||||
@SerialName(canSendOtherMessagesField)
|
@SerialName(canSendOtherMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendOtherMessages: Boolean? = null,
|
private val canSendOtherMessages: Boolean? = null,
|
||||||
@SerialName(canAddWebPagePreviewsField)
|
@SerialName(canAddWebPagePreviewsField)
|
||||||
@Optional
|
|
||||||
private val canAddWebPagePreviews: Boolean? = null
|
private val canAddWebPagePreviews: Boolean? = null
|
||||||
) : ChatMemberRequest<Boolean>, UntilDate {
|
) : ChatMemberRequest<Boolean>, UntilDate {
|
||||||
override fun method(): String = "restrictChatMember"
|
override fun method(): String = "restrictChatMember"
|
||||||
|
@ -14,7 +14,6 @@ data class PinChatMessage (
|
|||||||
@SerialName(messageIdField)
|
@SerialName(messageIdField)
|
||||||
val messageId: MessageIdentifier,
|
val messageId: MessageIdentifier,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false
|
override val disableNotification: Boolean = false
|
||||||
): ChatRequest, SimpleRequest<Boolean>, DisableNotification {
|
): ChatRequest, SimpleRequest<Boolean>, DisableNotification {
|
||||||
override fun method(): String = "pinChatMessage"
|
override fun method(): String = "pinChatMessage"
|
||||||
|
@ -17,7 +17,6 @@ data class EditChatMessageLiveLocation(
|
|||||||
@SerialName(longitudeField)
|
@SerialName(longitudeField)
|
||||||
override val longitude: Double,
|
override val longitude: Double,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditReplyMessage, EditLocationMessage {
|
) : EditChatMessage, EditReplyMessage, EditLocationMessage {
|
||||||
override fun method(): String = "editMessageLiveLocation"
|
override fun method(): String = "editMessageLiveLocation"
|
||||||
|
@ -14,7 +14,6 @@ data class EditInlineMessageLiveLocation(
|
|||||||
@SerialName(longitudeField)
|
@SerialName(longitudeField)
|
||||||
override val longitude: Double,
|
override val longitude: Double,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditReplyMessage, EditLocationMessage {
|
) : EditInlineMessage, EditReplyMessage, EditLocationMessage {
|
||||||
override fun method(): String = "editMessageLiveLocation"
|
override fun method(): String = "editMessageLiveLocation"
|
||||||
|
@ -14,7 +14,6 @@ data class StopChatMessageLiveLocation(
|
|||||||
@SerialName(messageIdField)
|
@SerialName(messageIdField)
|
||||||
override val messageId: MessageIdentifier,
|
override val messageId: MessageIdentifier,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditReplyMessage {
|
) : EditChatMessage, EditReplyMessage {
|
||||||
override fun method(): String = "stopMessageLiveLocation"
|
override fun method(): String = "stopMessageLiveLocation"
|
||||||
|
@ -11,7 +11,6 @@ data class StopInlineMessageLiveLocation(
|
|||||||
@SerialName(inlineMessageIdField)
|
@SerialName(inlineMessageIdField)
|
||||||
override val inlineMessageId: InlineMessageIdentifier,
|
override val inlineMessageId: InlineMessageIdentifier,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditReplyMessage {
|
) : EditInlineMessage, EditReplyMessage {
|
||||||
override fun method(): String = "stopMessageLiveLocation"
|
override fun method(): String = "stopMessageLiveLocation"
|
||||||
|
@ -16,7 +16,6 @@ data class EditChatMessageReplyMarkup(
|
|||||||
@SerialName(messageIdField)
|
@SerialName(messageIdField)
|
||||||
override val messageId: MessageIdentifier,
|
override val messageId: MessageIdentifier,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditReplyMessage {
|
) : EditChatMessage, EditReplyMessage {
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ data class EditInlineMessageReplyMarkup(
|
|||||||
@SerialName(inlineMessageIdField)
|
@SerialName(inlineMessageIdField)
|
||||||
override val inlineMessageId: InlineMessageIdentifier,
|
override val inlineMessageId: InlineMessageIdentifier,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditReplyMessage {
|
) : EditInlineMessage, EditReplyMessage {
|
||||||
override fun method(): String = editMessageReplyMarkupMethod
|
override fun method(): String = editMessageReplyMarkupMethod
|
||||||
|
@ -19,10 +19,8 @@ data class EditChatMessageCaption(
|
|||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditTextChatMessage, EditReplyMessage {
|
) : EditChatMessage, EditTextChatMessage, EditReplyMessage {
|
||||||
|
|
||||||
|
@ -14,10 +14,8 @@ data class EditInlineMessageCaption(
|
|||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditTextChatMessage, EditReplyMessage {
|
) : EditInlineMessage, EditTextChatMessage, EditReplyMessage {
|
||||||
override fun method(): String = editMessageCaptionMethod
|
override fun method(): String = editMessageCaptionMethod
|
||||||
|
@ -19,7 +19,6 @@ data class EditChatMessageMedia(
|
|||||||
@SerialName(mediaField)
|
@SerialName(mediaField)
|
||||||
override val media: InputMedia,
|
override val media: InputMedia,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditReplyMessage, EditMediaMessage {
|
) : EditChatMessage, EditReplyMessage, EditMediaMessage {
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ data class EditInlineMessageMedia(
|
|||||||
@SerialName(mediaField)
|
@SerialName(mediaField)
|
||||||
override val media: InputMedia,
|
override val media: InputMedia,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditReplyMessage, EditMediaMessage {
|
) : EditInlineMessage, EditReplyMessage, EditMediaMessage {
|
||||||
|
|
||||||
|
@ -19,13 +19,10 @@ data class EditChatMessageText(
|
|||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableWebPagePreviewField)
|
@SerialName(disableWebPagePreviewField)
|
||||||
@Optional
|
|
||||||
override val disableWebPagePreview: Boolean? = null,
|
override val disableWebPagePreview: Boolean? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditChatMessage, EditTextChatMessage, EditReplyMessage, EditDisableWebPagePreviewMessage {
|
) : EditChatMessage, EditTextChatMessage, EditReplyMessage, EditDisableWebPagePreviewMessage {
|
||||||
|
|
||||||
|
@ -15,13 +15,10 @@ data class EditInlineMessageText(
|
|||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableWebPagePreviewField)
|
@SerialName(disableWebPagePreviewField)
|
||||||
@Optional
|
|
||||||
override val disableWebPagePreview: Boolean? = null,
|
override val disableWebPagePreview: Boolean? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : EditInlineMessage, EditTextChatMessage, EditReplyMessage, EditDisableWebPagePreviewMessage {
|
) : EditInlineMessage, EditTextChatMessage, EditReplyMessage, EditDisableWebPagePreviewMessage {
|
||||||
override fun method(): String = editMessageMediaMethod
|
override fun method(): String = editMessageMediaMethod
|
||||||
|
@ -16,9 +16,7 @@ data class SetGameScoreByChatId (
|
|||||||
@SerialName(messageIdField)
|
@SerialName(messageIdField)
|
||||||
override val messageId: MessageIdentifier,
|
override val messageId: MessageIdentifier,
|
||||||
@SerialName(forceField)
|
@SerialName(forceField)
|
||||||
@Optional
|
|
||||||
override val force: Boolean = false,
|
override val force: Boolean = false,
|
||||||
@SerialName(disableEditMessageField)
|
@SerialName(disableEditMessageField)
|
||||||
@Optional
|
|
||||||
override val disableEditMessage: Boolean = false
|
override val disableEditMessage: Boolean = false
|
||||||
) : SetGameScore, ByMessageId
|
) : SetGameScore, ByMessageId
|
||||||
|
@ -14,9 +14,7 @@ data class SetGameScoreByInlineMessageId (
|
|||||||
@SerialName(inlineMessageIdField)
|
@SerialName(inlineMessageIdField)
|
||||||
override val inlineMessageId: InlineMessageIdentifier,
|
override val inlineMessageId: InlineMessageIdentifier,
|
||||||
@SerialName(forceField)
|
@SerialName(forceField)
|
||||||
@Optional
|
|
||||||
override val force: Boolean = false,
|
override val force: Boolean = false,
|
||||||
@SerialName(disableEditMessageField)
|
@SerialName(disableEditMessageField)
|
||||||
@Optional
|
|
||||||
override val disableEditMessage: Boolean = false
|
override val disableEditMessage: Boolean = false
|
||||||
) : SetGameScore, ByInlineMessageId
|
) : SetGameScore, ByInlineMessageId
|
||||||
|
@ -16,16 +16,12 @@ data class SendContact(
|
|||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
val firstName: String,
|
val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
@Optional
|
|
||||||
val lastName: String? = null,
|
val lastName: String? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>,
|
) : SendMessageRequest<RawMessage>,
|
||||||
ReplyingMarkupSendMessageRequest<RawMessage>
|
ReplyingMarkupSendMessageRequest<RawMessage>
|
||||||
|
@ -16,16 +16,12 @@ data class SendLocation(
|
|||||||
@SerialName(longitudeField)
|
@SerialName(longitudeField)
|
||||||
override val longitude: Double,
|
override val longitude: Double,
|
||||||
@SerialName(livePeriodField)
|
@SerialName(livePeriodField)
|
||||||
@Optional
|
|
||||||
val livePeriod: Long? = null,
|
val livePeriod: Long? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>,
|
) : SendMessageRequest<RawMessage>,
|
||||||
ReplyingMarkupSendMessageRequest<RawMessage>,
|
ReplyingMarkupSendMessageRequest<RawMessage>,
|
||||||
|
@ -16,19 +16,14 @@ data class SendMessage(
|
|||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
override val text: String,
|
override val text: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableWebPagePreviewField)
|
@SerialName(disableWebPagePreviewField)
|
||||||
@Optional
|
|
||||||
override val disableWebPagePreview: Boolean? = null,
|
override val disableWebPagePreview: Boolean? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>,
|
) : SendMessageRequest<RawMessage>,
|
||||||
ReplyingMarkupSendMessageRequest<RawMessage>,
|
ReplyingMarkupSendMessageRequest<RawMessage>,
|
||||||
|
@ -19,16 +19,12 @@ data class SendVenue(
|
|||||||
@SerialName(addressField)
|
@SerialName(addressField)
|
||||||
val address: String,
|
val address: String,
|
||||||
@SerialName(foursquareIdField)
|
@SerialName(foursquareIdField)
|
||||||
@Optional
|
|
||||||
val foursquareId: String? = null,
|
val foursquareId: String? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>,
|
) : SendMessageRequest<RawMessage>,
|
||||||
PositionedSendMessageRequest<RawMessage>,
|
PositionedSendMessageRequest<RawMessage>,
|
||||||
|
@ -14,13 +14,10 @@ data class SendGame (
|
|||||||
@SerialName(gameShortNameField)
|
@SerialName(gameShortNameField)
|
||||||
val gameShortName: String,
|
val gameShortName: String,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>,
|
) : SendMessageRequest<RawMessage>,
|
||||||
ReplyMarkup {
|
ReplyMarkup {
|
||||||
|
@ -58,34 +58,24 @@ data class SendAnimationData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(animationField)
|
@SerialName(animationField)
|
||||||
@Optional
|
|
||||||
val animation: String? = null,
|
val animation: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(durationField)
|
@SerialName(durationField)
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(widthField)
|
@SerialName(widthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(heightField)
|
@SerialName(heightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -59,34 +59,24 @@ data class SendAudioData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(audioField)
|
@SerialName(audioField)
|
||||||
@Optional
|
|
||||||
val audio: String? = null,
|
val audio: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(durationField)
|
@SerialName(durationField)
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(performerField)
|
@SerialName(performerField)
|
||||||
@Optional
|
|
||||||
override val performer: String? = null,
|
override val performer: String? = null,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -52,25 +52,18 @@ data class SendDocumentData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(documentField)
|
@SerialName(documentField)
|
||||||
@Optional
|
|
||||||
val document: String? = null,
|
val document: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -61,10 +61,8 @@ data class SendMediaGroupData internal constructor(
|
|||||||
@Transient
|
@Transient
|
||||||
val media: List<MediaGroupMemberInputMedia> = emptyList(),
|
val media: List<MediaGroupMemberInputMedia> = emptyList(),
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null
|
override val replyToMessageId: MessageIdentifier? = null
|
||||||
) : DataRequest<List<RawMessage>>,
|
) : DataRequest<List<RawMessage>>,
|
||||||
SendMessageRequest<List<RawMessage>>
|
SendMessageRequest<List<RawMessage>>
|
||||||
|
@ -41,22 +41,16 @@ data class SendPhotoData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(photoField)
|
@SerialName(photoField)
|
||||||
@Optional
|
|
||||||
val photo: String? = null,
|
val photo: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -34,16 +34,12 @@ data class SendStickerByFileId internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(stickerField)
|
@SerialName(stickerField)
|
||||||
@Optional
|
|
||||||
val sticker: FileId? = null,
|
val sticker: FileId? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : SendMessageRequest<RawMessage>, ReplyingMarkupSendMessageRequest<RawMessage> {
|
) : SendMessageRequest<RawMessage>, ReplyingMarkupSendMessageRequest<RawMessage> {
|
||||||
override fun method(): String = "sendSticker"
|
override fun method(): String = "sendSticker"
|
||||||
|
@ -60,37 +60,26 @@ data class SendVideoData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(videoField)
|
@SerialName(videoField)
|
||||||
@Optional
|
|
||||||
val video: String? = null,
|
val video: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(durationField)
|
@SerialName(durationField)
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(widthField)
|
@SerialName(widthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(heightField)
|
@SerialName(heightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(supportStreamingField)
|
@SerialName(supportStreamingField)
|
||||||
@Optional
|
|
||||||
val supportStreaming: Boolean? = null,
|
val supportStreaming: Boolean? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -56,31 +56,22 @@ data class SendVideoNoteData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(videoNoteField)
|
@SerialName(videoNoteField)
|
||||||
@Optional
|
|
||||||
val videoNote: String? = null,
|
val videoNote: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(durationField)
|
@SerialName(durationField)
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(lengthField)
|
@SerialName(lengthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -54,28 +54,20 @@ data class SendVoiceData internal constructor(
|
|||||||
@SerialName(chatIdField)
|
@SerialName(chatIdField)
|
||||||
override val chatId: ChatIdentifier,
|
override val chatId: ChatIdentifier,
|
||||||
@SerialName(voiceField)
|
@SerialName(voiceField)
|
||||||
@Optional
|
|
||||||
val voice: String? = null,
|
val voice: String? = null,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: String? = null,
|
override val thumb: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val text: String? = null,
|
override val text: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(durationField)
|
@SerialName(durationField)
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: KeyboardMarkup? = null
|
override val replyMarkup: KeyboardMarkup? = null
|
||||||
) : DataRequest<RawMessage>,
|
) : DataRequest<RawMessage>,
|
||||||
SendMessageRequest<RawMessage>,
|
SendMessageRequest<RawMessage>,
|
||||||
|
@ -9,7 +9,6 @@ import com.github.insanusmokrassar.TelegramBotAPI.types.payments.LabeledPrice
|
|||||||
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.LabeledPricesSerializer
|
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.LabeledPricesSerializer
|
||||||
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.abstracts.*
|
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.abstracts.*
|
||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.Optional
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,37 +35,26 @@ data class SendInvoice(
|
|||||||
@SerialName(pricesField)
|
@SerialName(pricesField)
|
||||||
override val prices: List<LabeledPrice>,
|
override val prices: List<LabeledPrice>,
|
||||||
@SerialName(providerDataField)
|
@SerialName(providerDataField)
|
||||||
@Optional
|
|
||||||
val providerData: String? = null,
|
val providerData: String? = null,
|
||||||
@SerialName(requireNameField)
|
@SerialName(requireNameField)
|
||||||
@Optional
|
|
||||||
val requireName: Boolean = false,
|
val requireName: Boolean = false,
|
||||||
@SerialName(requirePhoneNumberField)
|
@SerialName(requirePhoneNumberField)
|
||||||
@Optional
|
|
||||||
val requirePhoneNumber: Boolean = false,
|
val requirePhoneNumber: Boolean = false,
|
||||||
@SerialName(requireEmailField)
|
@SerialName(requireEmailField)
|
||||||
@Optional
|
|
||||||
val requireEmail: Boolean = false,
|
val requireEmail: Boolean = false,
|
||||||
@SerialName(requireShippingAddressField)
|
@SerialName(requireShippingAddressField)
|
||||||
@Optional
|
|
||||||
val requireShippingAddress: Boolean = false,
|
val requireShippingAddress: Boolean = false,
|
||||||
@SerialName(shouldSendPhoneNumberToProviderField)
|
@SerialName(shouldSendPhoneNumberToProviderField)
|
||||||
@Optional
|
|
||||||
val shouldSendPhoneNumberToProvider: Boolean = false,
|
val shouldSendPhoneNumberToProvider: Boolean = false,
|
||||||
@SerialName(shouldSendEmailToProviderField)
|
@SerialName(shouldSendEmailToProviderField)
|
||||||
@Optional
|
|
||||||
val shouldSendEmailToProvider: Boolean = false,
|
val shouldSendEmailToProvider: Boolean = false,
|
||||||
@SerialName(priceDependOnShipAddressField)
|
@SerialName(priceDependOnShipAddressField)
|
||||||
@Optional
|
|
||||||
val priceDependOnShipAddress: Boolean = false,
|
val priceDependOnShipAddress: Boolean = false,
|
||||||
@SerialName(disableNotificationField)
|
@SerialName(disableNotificationField)
|
||||||
@Optional
|
|
||||||
override val disableNotification: Boolean = false,
|
override val disableNotification: Boolean = false,
|
||||||
@SerialName(replyToMessageIdField)
|
@SerialName(replyToMessageIdField)
|
||||||
@Optional
|
|
||||||
override val replyToMessageId: MessageIdentifier? = null,
|
override val replyToMessageId: MessageIdentifier? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null
|
override val replyMarkup: InlineKeyboardMarkup? = null
|
||||||
) : Currencied,
|
) : Currencied,
|
||||||
Priced,
|
Priced,
|
||||||
|
@ -33,10 +33,8 @@ data class AddStickerToSet internal constructor(
|
|||||||
@SerialName(emojisField)
|
@SerialName(emojisField)
|
||||||
override val emojis: String,
|
override val emojis: String,
|
||||||
@SerialName(pngStickerField)
|
@SerialName(pngStickerField)
|
||||||
@Optional
|
|
||||||
val sticker: FileId? = null,
|
val sticker: FileId? = null,
|
||||||
@SerialName(maskPositionField)
|
@SerialName(maskPositionField)
|
||||||
@Optional
|
|
||||||
override val maskPosition: MaskPosition? = null
|
override val maskPosition: MaskPosition? = null
|
||||||
) : StickerSetAction {
|
) : StickerSetAction {
|
||||||
init {
|
init {
|
||||||
|
@ -34,13 +34,10 @@ data class CreateNewStickerSet internal constructor(
|
|||||||
@SerialName(emojisField)
|
@SerialName(emojisField)
|
||||||
override val emojis: String,
|
override val emojis: String,
|
||||||
@SerialName(pngStickerField)
|
@SerialName(pngStickerField)
|
||||||
@Optional
|
|
||||||
val sticker: FileId? = null,
|
val sticker: FileId? = null,
|
||||||
@SerialName(containsMasksField)
|
@SerialName(containsMasksField)
|
||||||
@Optional
|
|
||||||
val containsMasks: Boolean? = null,
|
val containsMasks: Boolean? = null,
|
||||||
@SerialName(maskPositionField)
|
@SerialName(maskPositionField)
|
||||||
@Optional
|
|
||||||
override val maskPosition: MaskPosition? = null
|
override val maskPosition: MaskPosition? = null
|
||||||
) : StickerSetAction {
|
) : StickerSetAction {
|
||||||
init {
|
init {
|
||||||
|
@ -44,13 +44,10 @@ data class SetWebhook internal constructor(
|
|||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
val url: String,
|
val url: String,
|
||||||
@SerialName(certificateField)
|
@SerialName(certificateField)
|
||||||
@Optional
|
|
||||||
val certificateFile: String? = null,
|
val certificateFile: String? = null,
|
||||||
@SerialName(maxAllowedConnectionsField)
|
@SerialName(maxAllowedConnectionsField)
|
||||||
@Optional
|
|
||||||
val maxAllowedConnections: Int? = null,
|
val maxAllowedConnections: Int? = null,
|
||||||
@SerialName(allowedUpdatesField)
|
@SerialName(allowedUpdatesField)
|
||||||
@Optional
|
|
||||||
val allowedUpdates: List<String>? = null
|
val allowedUpdates: List<String>? = null
|
||||||
) : DataRequest<Boolean> {
|
) : DataRequest<Boolean> {
|
||||||
override fun method(): String = "setWebhook"
|
override fun method(): String = "setWebhook"
|
||||||
|
@ -10,17 +10,13 @@ data class RawCallbackQuery(
|
|||||||
val id: CallbackQueryIdentifier,
|
val id: CallbackQueryIdentifier,
|
||||||
@SerialName(fromField)
|
@SerialName(fromField)
|
||||||
val from: User,
|
val from: User,
|
||||||
@Optional
|
|
||||||
val message: RawMessage? = null,
|
val message: RawMessage? = null,
|
||||||
@SerialName(inlineMessageIdField)
|
@SerialName(inlineMessageIdField)
|
||||||
@Optional
|
|
||||||
val inlineMessageId: InlineMessageIdentifier? = null,
|
val inlineMessageId: InlineMessageIdentifier? = null,
|
||||||
@SerialName("chat_instance")
|
@SerialName("chat_instance")
|
||||||
val chatInstance: String,
|
val chatInstance: String,
|
||||||
@Optional
|
|
||||||
val data: String? = null,
|
val data: String? = null,
|
||||||
@SerialName("game_short_name")
|
@SerialName("game_short_name")
|
||||||
@Optional
|
|
||||||
val gameShortName: String? = null
|
val gameShortName: String? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -7,46 +7,32 @@ import kotlinx.serialization.*
|
|||||||
data class RawChatMember(
|
data class RawChatMember(
|
||||||
val user: User,
|
val user: User,
|
||||||
private val status: String,
|
private val status: String,
|
||||||
@Optional
|
|
||||||
private val until_date: TelegramDate? = null,
|
private val until_date: TelegramDate? = null,
|
||||||
@SerialName(canBeEditedField)
|
@SerialName(canBeEditedField)
|
||||||
@Optional
|
|
||||||
private val canBeEdited: Boolean = false,
|
private val canBeEdited: Boolean = false,
|
||||||
@SerialName(canChangeInfoField)
|
@SerialName(canChangeInfoField)
|
||||||
@Optional
|
|
||||||
private val canChangeInfo: Boolean = false,
|
private val canChangeInfo: Boolean = false,
|
||||||
@SerialName(canPostMessagesField)
|
@SerialName(canPostMessagesField)
|
||||||
@Optional
|
|
||||||
private val canPostMessages: Boolean = false,
|
private val canPostMessages: Boolean = false,
|
||||||
@SerialName(canEditMessagesField)
|
@SerialName(canEditMessagesField)
|
||||||
@Optional
|
|
||||||
private val canEditMessages: Boolean = false,
|
private val canEditMessages: Boolean = false,
|
||||||
@SerialName(canDeleteMessagesField)
|
@SerialName(canDeleteMessagesField)
|
||||||
@Optional
|
|
||||||
private val canDeleteMessages: Boolean = false,
|
private val canDeleteMessages: Boolean = false,
|
||||||
@SerialName(canInviteUsersField)
|
@SerialName(canInviteUsersField)
|
||||||
@Optional
|
|
||||||
private val canInviteUsers: Boolean = false,
|
private val canInviteUsers: Boolean = false,
|
||||||
@SerialName(canRestrictMembersField)
|
@SerialName(canRestrictMembersField)
|
||||||
@Optional
|
|
||||||
private val canRestrictMembers: Boolean = false,
|
private val canRestrictMembers: Boolean = false,
|
||||||
@SerialName(canPinMessagesField)
|
@SerialName(canPinMessagesField)
|
||||||
@Optional
|
|
||||||
private val canPinMessages: Boolean = false,
|
private val canPinMessages: Boolean = false,
|
||||||
@SerialName(canPromoteMembersField)
|
@SerialName(canPromoteMembersField)
|
||||||
@Optional
|
|
||||||
private val canPromoteMembers: Boolean = false,
|
private val canPromoteMembers: Boolean = false,
|
||||||
@SerialName(canSendMessagesField)
|
@SerialName(canSendMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendMessages: Boolean = false,
|
private val canSendMessages: Boolean = false,
|
||||||
@SerialName(canSendMediaMessagesField)
|
@SerialName(canSendMediaMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendMediaMessages: Boolean = false,
|
private val canSendMediaMessages: Boolean = false,
|
||||||
@SerialName(canSendOtherMessagesField)
|
@SerialName(canSendOtherMessagesField)
|
||||||
@Optional
|
|
||||||
private val canSendOtherMessages: Boolean = false,
|
private val canSendOtherMessages: Boolean = false,
|
||||||
@SerialName(canAddWebPagePreviewsField)
|
@SerialName(canAddWebPagePreviewsField)
|
||||||
@Optional
|
|
||||||
private val canAddWebPagePreviews: Boolean = false
|
private val canAddWebPagePreviews: Boolean = false
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -10,12 +10,9 @@ data class Contact(
|
|||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
override val firstName: String,
|
override val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
@Optional
|
|
||||||
override val lastName: String? = null,
|
override val lastName: String? = null,
|
||||||
@SerialName(userIdField)
|
@SerialName(userIdField)
|
||||||
@Optional
|
|
||||||
val userId: UserId? = null,
|
val userId: UserId? = null,
|
||||||
@SerialName(vcardField)
|
@SerialName(vcardField)
|
||||||
@Optional
|
|
||||||
override val vcard: String? = null
|
override val vcard: String? = null
|
||||||
) : CommonContactData
|
) : CommonContactData
|
||||||
|
@ -13,10 +13,8 @@ data class RawChosenInlineResult(
|
|||||||
@SerialName(queryField)
|
@SerialName(queryField)
|
||||||
val query: String,
|
val query: String,
|
||||||
@SerialName(locationField)
|
@SerialName(locationField)
|
||||||
@Optional
|
|
||||||
val location: Location? = null,
|
val location: Location? = null,
|
||||||
@SerialName(inlineMessageIdField)
|
@SerialName(inlineMessageIdField)
|
||||||
@Optional
|
|
||||||
val inlineMessageId: InlineMessageIdentifier? = null
|
val inlineMessageId: InlineMessageIdentifier? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -15,25 +15,18 @@ class InlineQueryResultArticle(
|
|||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
override val inputMessageContent: InputMessageContent,
|
override val inputMessageContent: InputMessageContent,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(urlField)
|
@SerialName(urlField)
|
||||||
@Optional
|
|
||||||
override val url: String? = null,
|
override val url: String? = null,
|
||||||
@SerialName(hideUrlField)
|
@SerialName(hideUrlField)
|
||||||
@Optional
|
|
||||||
val hideUrl: Boolean? = null,
|
val hideUrl: Boolean? = null,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
@Optional
|
|
||||||
override val thumbUrl: String? = null,
|
override val thumbUrl: String? = null,
|
||||||
@SerialName(thumbWidthField)
|
@SerialName(thumbWidthField)
|
||||||
@Optional
|
|
||||||
override val thumbWidth: Int? = null,
|
override val thumbWidth: Int? = null,
|
||||||
@SerialName(thumbHeightField)
|
@SerialName(thumbHeightField)
|
||||||
@Optional
|
|
||||||
override val thumbHeight: Int? = null
|
override val thumbHeight: Int? = null
|
||||||
) : InlineQueryResult,
|
) : InlineQueryResult,
|
||||||
ThumbSizedInlineQueryResult,
|
ThumbSizedInlineQueryResult,
|
||||||
|
@ -17,16 +17,12 @@ data class InlineQueryResultAudioCachedImpl(
|
|||||||
@SerialName(audioFileIdField)
|
@SerialName(audioFileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultAudioCached {
|
) : InlineQueryResultAudioCached {
|
||||||
override val type: String = inlineQueryResultAudioType
|
override val type: String = inlineQueryResultAudioType
|
||||||
|
@ -18,22 +18,16 @@ data class InlineQueryResultAudioImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(performerField)
|
@SerialName(performerField)
|
||||||
@Optional
|
|
||||||
override val performer: String? = null,
|
override val performer: String? = null,
|
||||||
@SerialName(audioDurationField)
|
@SerialName(audioDurationField)
|
||||||
@Optional
|
|
||||||
override val duration: Int? = null,
|
override val duration: Int? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultAudio {
|
) : InlineQueryResultAudio {
|
||||||
override val type: String = inlineQueryResultAudioType
|
override val type: String = inlineQueryResultAudioType
|
||||||
|
@ -16,25 +16,18 @@ data class InlineQueryResultContact(
|
|||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
override val firstName: String,
|
override val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
@Optional
|
|
||||||
override val lastName: String? = null,
|
override val lastName: String? = null,
|
||||||
@SerialName(vcardField)
|
@SerialName(vcardField)
|
||||||
@Optional
|
|
||||||
override val vcard: String? = null,
|
override val vcard: String? = null,
|
||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
@Optional
|
|
||||||
override val thumbUrl: String? = null,
|
override val thumbUrl: String? = null,
|
||||||
@SerialName(thumbWidthField)
|
@SerialName(thumbWidthField)
|
||||||
@Optional
|
|
||||||
override val thumbWidth: Int? = null,
|
override val thumbWidth: Int? = null,
|
||||||
@SerialName(thumbHeightField)
|
@SerialName(thumbHeightField)
|
||||||
@Optional
|
|
||||||
override val thumbHeight: Int? = null,
|
override val thumbHeight: Int? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResult,
|
) : InlineQueryResult,
|
||||||
CommonContactData,
|
CommonContactData,
|
||||||
|
@ -19,19 +19,14 @@ data class InlineQueryResultDocumentCachedImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultDocumentCached {
|
) : InlineQueryResultDocumentCached {
|
||||||
override val type: String = inlineQueryResultDocumentType
|
override val type: String = inlineQueryResultDocumentType
|
||||||
|
@ -21,28 +21,20 @@ data class InlineQueryResultDocumentImpl(
|
|||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
override val mimeType: String,
|
override val mimeType: String,
|
||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
@Optional
|
|
||||||
override val thumbUrl: String? = null,
|
override val thumbUrl: String? = null,
|
||||||
@SerialName(thumbWidthField)
|
@SerialName(thumbWidthField)
|
||||||
@Optional
|
|
||||||
override val thumbWidth: Int? = null,
|
override val thumbWidth: Int? = null,
|
||||||
@SerialName(thumbHeightField)
|
@SerialName(thumbHeightField)
|
||||||
@Optional
|
|
||||||
override val thumbHeight: Int? = null,
|
override val thumbHeight: Int? = null,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultDocument {
|
) : InlineQueryResultDocument {
|
||||||
override val type: String = inlineQueryResultDocumentType
|
override val type: String = inlineQueryResultDocumentType
|
||||||
|
@ -17,19 +17,14 @@ data class InlineQueryResultGifCachedImpl(
|
|||||||
@SerialName(gifFileIdField)
|
@SerialName(gifFileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultGifCached {
|
) : InlineQueryResultGifCached {
|
||||||
override val type: String = inlineQueryResultGifType
|
override val type: String = inlineQueryResultGifType
|
||||||
|
@ -18,28 +18,20 @@ data class InlineQueryResultGifImpl(
|
|||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
override val thumbUrl: String,
|
override val thumbUrl: String,
|
||||||
@SerialName(gifWidthField)
|
@SerialName(gifWidthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(gifHeightField)
|
@SerialName(gifHeightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(gifDurationField)
|
@SerialName(gifDurationField)
|
||||||
@Optional
|
|
||||||
override val duration: Int? = null,
|
override val duration: Int? = null,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultGif {
|
) : InlineQueryResultGif {
|
||||||
override val type: String = inlineQueryResultGifType
|
override val type: String = inlineQueryResultGifType
|
||||||
|
@ -19,22 +19,16 @@ data class InlineQueryResultLocation(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(livePeriodField)
|
@SerialName(livePeriodField)
|
||||||
@Optional
|
|
||||||
override val livePeriod: Int? = null,
|
override val livePeriod: Int? = null,
|
||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
@Optional
|
|
||||||
override val thumbUrl: String? = null,
|
override val thumbUrl: String? = null,
|
||||||
@SerialName(thumbWidthField)
|
@SerialName(thumbWidthField)
|
||||||
@Optional
|
|
||||||
override val thumbWidth: Int? = null,
|
override val thumbWidth: Int? = null,
|
||||||
@SerialName(thumbHeightField)
|
@SerialName(thumbHeightField)
|
||||||
@Optional
|
|
||||||
override val thumbHeight: Int? = null,
|
override val thumbHeight: Int? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResult,
|
) : InlineQueryResult,
|
||||||
Locationed,
|
Locationed,
|
||||||
|
@ -17,19 +17,14 @@ data class InlineQueryResultMpeg4GifCachedImpl(
|
|||||||
@SerialName(mpeg4GifFileIdField)
|
@SerialName(mpeg4GifFileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultMpeg4GifCached {
|
) : InlineQueryResultMpeg4GifCached {
|
||||||
override val type: String = inlineQueryResultMpeg4GifType
|
override val type: String = inlineQueryResultMpeg4GifType
|
||||||
|
@ -18,28 +18,20 @@ data class InlineQueryResultMpeg4GifImpl(
|
|||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
override val thumbUrl: String,
|
override val thumbUrl: String,
|
||||||
@SerialName(mpeg4GifWidthField)
|
@SerialName(mpeg4GifWidthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(mpeg4GifHeightField)
|
@SerialName(mpeg4GifHeightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(mpeg4GifDurationField)
|
@SerialName(mpeg4GifDurationField)
|
||||||
@Optional
|
|
||||||
override val duration: Int? = null,
|
override val duration: Int? = null,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultMpeg4Gif {
|
) : InlineQueryResultMpeg4Gif {
|
||||||
override val type: String = inlineQueryResultMpeg4GifType
|
override val type: String = inlineQueryResultMpeg4GifType
|
||||||
|
@ -17,22 +17,16 @@ data class InlineQueryResultPhotoCachedImpl(
|
|||||||
@SerialName(photoFileIdField)
|
@SerialName(photoFileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultPhotoCached {
|
) : InlineQueryResultPhotoCached {
|
||||||
override val type: String = inlineQueryResultPhotoType
|
override val type: String = inlineQueryResultPhotoType
|
||||||
|
@ -18,28 +18,20 @@ data class InlineQueryResultPhotoImpl(
|
|||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
override val thumbUrl: String,
|
override val thumbUrl: String,
|
||||||
@SerialName(photoWidthField)
|
@SerialName(photoWidthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(photoHeightField)
|
@SerialName(photoHeightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultPhoto {
|
) : InlineQueryResultPhoto {
|
||||||
override val type: String = inlineQueryResultPhotoType
|
override val type: String = inlineQueryResultPhotoType
|
||||||
|
@ -14,10 +14,8 @@ data class InlineQueryResultStickerCached(
|
|||||||
@SerialName(stickerFileIdField)
|
@SerialName(stickerFileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResult, WithInputMessageContentInlineQueryResult, WithFileIdInlineQueryResult {
|
) : InlineQueryResult, WithInputMessageContentInlineQueryResult, WithFileIdInlineQueryResult {
|
||||||
override val type: String = "sticker"
|
override val type: String = "sticker"
|
||||||
|
@ -21,25 +21,18 @@ data class InlineQueryResultVenue(
|
|||||||
@SerialName(addressField)
|
@SerialName(addressField)
|
||||||
override val address: String,
|
override val address: String,
|
||||||
@SerialName(foursquareIdField)
|
@SerialName(foursquareIdField)
|
||||||
@Optional
|
|
||||||
override val foursquareId: String? = null,
|
override val foursquareId: String? = null,
|
||||||
@SerialName(foursquareTypeField)
|
@SerialName(foursquareTypeField)
|
||||||
@Optional
|
|
||||||
override val foursquareType: String? = null,
|
override val foursquareType: String? = null,
|
||||||
@SerialName(thumbUrlField)
|
@SerialName(thumbUrlField)
|
||||||
@Optional
|
|
||||||
override val thumbUrl: String? = null,
|
override val thumbUrl: String? = null,
|
||||||
@SerialName(thumbWidthField)
|
@SerialName(thumbWidthField)
|
||||||
@Optional
|
|
||||||
override val thumbWidth: Int? = null,
|
override val thumbWidth: Int? = null,
|
||||||
@SerialName(thumbHeightField)
|
@SerialName(thumbHeightField)
|
||||||
@Optional
|
|
||||||
override val thumbHeight: Int? = null,
|
override val thumbHeight: Int? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResult,
|
) : InlineQueryResult,
|
||||||
Locationed,
|
Locationed,
|
||||||
|
@ -19,19 +19,14 @@ data class InlineQueryResultVideoCachedImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultVideoCached {
|
) : InlineQueryResultVideoCached {
|
||||||
override val type: String = inlineQueryResultVideoType
|
override val type: String = inlineQueryResultVideoType
|
||||||
|
@ -23,28 +23,20 @@ data class InlineQueryResultVideoImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(videoWidthField)
|
@SerialName(videoWidthField)
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@SerialName(videoHeightField)
|
@SerialName(videoHeightField)
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@SerialName(videoDurationField)
|
@SerialName(videoDurationField)
|
||||||
@Optional
|
|
||||||
override val duration: Int? = null,
|
override val duration: Int? = null,
|
||||||
@SerialName(descriptionField)
|
@SerialName(descriptionField)
|
||||||
@Optional
|
|
||||||
override val description: String? = null,
|
override val description: String? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultVideo {
|
) : InlineQueryResultVideo {
|
||||||
override val type: String = inlineQueryResultVideoType
|
override val type: String = inlineQueryResultVideoType
|
||||||
|
@ -19,16 +19,12 @@ data class InlineQueryResultVoiceCachedImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultVoiceCached {
|
) : InlineQueryResultVoiceCached {
|
||||||
override val type: String = inlineQueryResultVoiceType
|
override val type: String = inlineQueryResultVoiceType
|
||||||
|
@ -18,19 +18,14 @@ data class InlineQueryResultVoiceImpl(
|
|||||||
@SerialName(titleField)
|
@SerialName(titleField)
|
||||||
override val title: String,
|
override val title: String,
|
||||||
@SerialName(voiceDurationField)
|
@SerialName(voiceDurationField)
|
||||||
@Optional
|
|
||||||
override val duration: Int? = null,
|
override val duration: Int? = null,
|
||||||
@SerialName(captionField)
|
@SerialName(captionField)
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(replyMarkupField)
|
@SerialName(replyMarkupField)
|
||||||
@Optional
|
|
||||||
override val replyMarkup: InlineKeyboardMarkup? = null,
|
override val replyMarkup: InlineKeyboardMarkup? = null,
|
||||||
@SerialName(inputMessageContentField)
|
@SerialName(inputMessageContentField)
|
||||||
@Optional
|
|
||||||
override val inputMessageContent: InputMessageContent? = null
|
override val inputMessageContent: InputMessageContent? = null
|
||||||
) : InlineQueryResultVoice {
|
) : InlineQueryResultVoice {
|
||||||
override val type: String = inlineQueryResultVoiceType
|
override val type: String = inlineQueryResultVoiceType
|
||||||
|
@ -12,9 +12,7 @@ data class InputContactMessageContent(
|
|||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
override val firstName: String,
|
override val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
@Optional
|
|
||||||
override val lastName: String? = null,
|
override val lastName: String? = null,
|
||||||
@SerialName(vcardField)
|
@SerialName(vcardField)
|
||||||
@Optional
|
|
||||||
override val vcard: String? = null
|
override val vcard: String? = null
|
||||||
) : CommonContactData, InputMessageContent
|
) : CommonContactData, InputMessageContent
|
@ -13,6 +13,5 @@ data class InputLocationMessageContent(
|
|||||||
@SerialName(longitudeField)
|
@SerialName(longitudeField)
|
||||||
override val longitude: Double,
|
override val longitude: Double,
|
||||||
@SerialName(livePeriodField)
|
@SerialName(livePeriodField)
|
||||||
@Optional
|
|
||||||
override val livePeriod: Int? = null
|
override val livePeriod: Int? = null
|
||||||
) : Locationed, Livable, InputMessageContent
|
) : Locationed, Livable, InputMessageContent
|
@ -14,9 +14,7 @@ data class InputTextMessageContent(
|
|||||||
@SerialName(messageTextField)
|
@SerialName(messageTextField)
|
||||||
override val caption: String,
|
override val caption: String,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@SerialName(disableWebPagePreviewField)
|
@SerialName(disableWebPagePreviewField)
|
||||||
@Optional
|
|
||||||
override val disableWebPagePreview: Boolean? = null
|
override val disableWebPagePreview: Boolean? = null
|
||||||
) : Captioned, DisableWebPagePreview, InputMessageContent
|
) : Captioned, DisableWebPagePreview, InputMessageContent
|
@ -17,9 +17,7 @@ data class InputVenueMessageContent(
|
|||||||
@SerialName(addressField)
|
@SerialName(addressField)
|
||||||
override val address: String,
|
override val address: String,
|
||||||
@SerialName(foursquareIdField)
|
@SerialName(foursquareIdField)
|
||||||
@Optional
|
|
||||||
override val foursquareId: String? = null,
|
override val foursquareId: String? = null,
|
||||||
@SerialName(foursquareTypeField)
|
@SerialName(foursquareTypeField)
|
||||||
@Optional
|
|
||||||
override val foursquareType: String? = null
|
override val foursquareType: String? = null
|
||||||
) : Locationed, CommonVenueData, InputMessageContent
|
) : Locationed, CommonVenueData, InputMessageContent
|
||||||
|
@ -14,7 +14,6 @@ data class RawInlineQuery(
|
|||||||
@SerialName(offsetField)
|
@SerialName(offsetField)
|
||||||
val offset: String,
|
val offset: String,
|
||||||
@SerialName(locationField)
|
@SerialName(locationField)
|
||||||
@Optional
|
|
||||||
val location: Location? = null
|
val location: Location? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -10,16 +10,11 @@ import kotlinx.serialization.*
|
|||||||
data class InputMediaAnimation(
|
data class InputMediaAnimation(
|
||||||
@Transient
|
@Transient
|
||||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Transient
|
@Transient
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
|
@ -11,16 +11,11 @@ import kotlinx.serialization.*
|
|||||||
data class InputMediaAudio(
|
data class InputMediaAudio(
|
||||||
@Transient
|
@Transient
|
||||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Optional
|
|
||||||
override val performer: String? = null,
|
override val performer: String? = null,
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
) : InputMedia, DuratedInputMedia, ThumbedInputMedia, TitledInputMedia, CaptionedInputMedia, Performerable {
|
) : InputMedia, DuratedInputMedia, ThumbedInputMedia, TitledInputMedia, CaptionedInputMedia, Performerable {
|
||||||
|
@ -10,10 +10,8 @@ import kotlinx.serialization.*
|
|||||||
data class InputMediaDocument(
|
data class InputMediaDocument(
|
||||||
@Transient
|
@Transient
|
||||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@Transient
|
@Transient
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
|
@ -11,10 +11,8 @@ import kotlinx.serialization.*
|
|||||||
data class InputMediaPhoto(
|
data class InputMediaPhoto(
|
||||||
@Transient
|
@Transient
|
||||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null
|
override val parseMode: ParseMode? = null
|
||||||
) : InputMedia, CaptionedInputMedia, MediaGroupMemberInputMedia {
|
) : InputMedia, CaptionedInputMedia, MediaGroupMemberInputMedia {
|
||||||
override val type: String = "photo"
|
override val type: String = "photo"
|
||||||
|
@ -10,16 +10,11 @@ import kotlinx.serialization.*
|
|||||||
data class InputMediaVideo(
|
data class InputMediaVideo(
|
||||||
@Transient
|
@Transient
|
||||||
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
override val file: InputFile = throw IllegalStateException("Must be created with file"),
|
||||||
@Optional
|
|
||||||
override val caption: String? = null,
|
override val caption: String? = null,
|
||||||
@SerialName(parseModeField)
|
@SerialName(parseModeField)
|
||||||
@Optional
|
|
||||||
override val parseMode: ParseMode? = null,
|
override val parseMode: ParseMode? = null,
|
||||||
@Optional
|
|
||||||
override val width: Int? = null,
|
override val width: Int? = null,
|
||||||
@Optional
|
|
||||||
override val height: Int? = null,
|
override val height: Int? = null,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Transient
|
@Transient
|
||||||
override val thumb: InputFile? = null
|
override val thumb: InputFile? = null
|
||||||
|
@ -9,9 +9,7 @@ data class RawMessageEntity(
|
|||||||
val type: String,
|
val type: String,
|
||||||
val offset: Int,
|
val offset: Int,
|
||||||
val length: Int,
|
val length: Int,
|
||||||
@Optional
|
|
||||||
val url: String? = null,
|
val url: String? = null,
|
||||||
@Optional
|
|
||||||
val user: User? = null
|
val user: User? = null
|
||||||
) {
|
) {
|
||||||
fun asMessageEntity(source: String): MessageEntity {
|
fun asMessageEntity(source: String): MessageEntity {
|
||||||
|
@ -11,13 +11,9 @@ typealias ResponseParameters<T> = Response<T>
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class Response<T : Any>(
|
data class Response<T : Any>(
|
||||||
val ok: Boolean = false,
|
val ok: Boolean = false,
|
||||||
@Optional
|
|
||||||
val description: String? = null,
|
val description: String? = null,
|
||||||
@SerialName("error_code")
|
@SerialName("error_code")
|
||||||
@Optional
|
|
||||||
val errorCode: Int? = null,
|
val errorCode: Int? = null,
|
||||||
@Optional
|
|
||||||
val result: T? = null,
|
val result: T? = null,
|
||||||
@Optional
|
|
||||||
val parameters: ResponseParametersRaw? = null
|
val parameters: ResponseParametersRaw? = null
|
||||||
)
|
)
|
||||||
|
@ -5,10 +5,8 @@ import kotlinx.serialization.*
|
|||||||
@Serializable
|
@Serializable
|
||||||
data class ResponseParametersRaw(
|
data class ResponseParametersRaw(
|
||||||
@SerialName("migrate_to_chat_id")
|
@SerialName("migrate_to_chat_id")
|
||||||
@Optional
|
|
||||||
private val migrateToChatId: ChatId? = null,
|
private val migrateToChatId: ChatId? = null,
|
||||||
@SerialName("retry_after")
|
@SerialName("retry_after")
|
||||||
@Optional
|
|
||||||
private val retryAfter: Long? = null
|
private val retryAfter: Long? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -1,25 +1,20 @@
|
|||||||
package com.github.insanusmokrassar.TelegramBotAPI.types
|
package com.github.insanusmokrassar.TelegramBotAPI.types
|
||||||
|
|
||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.Optional
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class User(
|
data class User(
|
||||||
val id: ChatId,
|
val id: ChatId,
|
||||||
@SerialName(isBotField)
|
@SerialName(isBotField)
|
||||||
@Optional
|
|
||||||
val isBot: Boolean = false,
|
val isBot: Boolean = false,
|
||||||
@SerialName(firstNameField)
|
@SerialName(firstNameField)
|
||||||
val firstName: String,
|
val firstName: String,
|
||||||
@SerialName(lastNameField)
|
@SerialName(lastNameField)
|
||||||
@Optional
|
|
||||||
val lastName: String? = null,
|
val lastName: String? = null,
|
||||||
@SerialName(usernameField)
|
@SerialName(usernameField)
|
||||||
@Optional
|
|
||||||
val username: Username? = null,
|
val username: Username? = null,
|
||||||
@SerialName(languageCodeField)
|
@SerialName(languageCodeField)
|
||||||
@Optional
|
|
||||||
private val languageCode: String? = null
|
private val languageCode: String? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -12,9 +12,7 @@ data class Venue(
|
|||||||
@SerialName(addressField)
|
@SerialName(addressField)
|
||||||
override val address: String,
|
override val address: String,
|
||||||
@SerialName(foursquareIdField)
|
@SerialName(foursquareIdField)
|
||||||
@Optional
|
|
||||||
override val foursquareId: String? = null,
|
override val foursquareId: String? = null,
|
||||||
@SerialName(foursquareTypeField)
|
@SerialName(foursquareTypeField)
|
||||||
@Optional
|
|
||||||
override val foursquareType: String? = null
|
override val foursquareType: String? = null
|
||||||
) : CommonVenueData
|
) : CommonVenueData
|
||||||
|
@ -9,19 +9,14 @@ data class WebhookInfo(
|
|||||||
@SerialName(pendingUpdateCountField)
|
@SerialName(pendingUpdateCountField)
|
||||||
val awaitDeliery: Int,
|
val awaitDeliery: Int,
|
||||||
@SerialName(maxAllowedConnectionsField)
|
@SerialName(maxAllowedConnectionsField)
|
||||||
@Optional
|
|
||||||
val maxConnections: Int = 40, // default count according to documentation
|
val maxConnections: Int = 40, // default count according to documentation
|
||||||
@SerialName(hasCustomCertificateField)
|
@SerialName(hasCustomCertificateField)
|
||||||
@Optional
|
|
||||||
val customCertificate: Boolean = false,
|
val customCertificate: Boolean = false,
|
||||||
@SerialName(allowedUpdatesField)
|
@SerialName(allowedUpdatesField)
|
||||||
@Optional
|
|
||||||
val allowedUpdates: List<String> = ALL_UPDATES_LIST,
|
val allowedUpdates: List<String> = ALL_UPDATES_LIST,
|
||||||
@SerialName(lastErrorDateField)
|
@SerialName(lastErrorDateField)
|
||||||
@Optional
|
|
||||||
val lastErrorDate: TelegramDate? = null,
|
val lastErrorDate: TelegramDate? = null,
|
||||||
@SerialName(lastErrorMessageField)
|
@SerialName(lastErrorMessageField)
|
||||||
@Optional
|
|
||||||
val lastErrorMessage: String? = null
|
val lastErrorMessage: String? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -4,7 +4,6 @@ import kotlinx.serialization.*
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ForceReply(
|
data class ForceReply(
|
||||||
@Optional
|
|
||||||
val selective: Boolean? = null
|
val selective: Boolean? = null
|
||||||
) : KeyboardMarkup {
|
) : KeyboardMarkup {
|
||||||
@SerialName("force_reply")
|
@SerialName("force_reply")
|
||||||
|
@ -6,9 +6,7 @@ import kotlinx.serialization.*
|
|||||||
data class KeyboardButton(
|
data class KeyboardButton(
|
||||||
val text: String,
|
val text: String,
|
||||||
@SerialName("request_contact")
|
@SerialName("request_contact")
|
||||||
@Optional
|
|
||||||
val requestContact: Boolean? = null,
|
val requestContact: Boolean? = null,
|
||||||
@SerialName("request_location")
|
@SerialName("request_location")
|
||||||
@Optional
|
|
||||||
val requestLocation: Boolean? = null
|
val requestLocation: Boolean? = null
|
||||||
)
|
)
|
||||||
|
@ -6,11 +6,8 @@ import kotlinx.serialization.*
|
|||||||
data class ReplyKeyboardMarkup(
|
data class ReplyKeyboardMarkup(
|
||||||
val keyboard: Matrix<KeyboardButton>,
|
val keyboard: Matrix<KeyboardButton>,
|
||||||
@SerialName("resize_keyboard")
|
@SerialName("resize_keyboard")
|
||||||
@Optional
|
|
||||||
val resizeKeyboard: Boolean? = null,
|
val resizeKeyboard: Boolean? = null,
|
||||||
@SerialName("one_time_keyboard")
|
@SerialName("one_time_keyboard")
|
||||||
@Optional
|
|
||||||
val oneTimeKeyboard: Boolean? = null,
|
val oneTimeKeyboard: Boolean? = null,
|
||||||
@Optional
|
|
||||||
val selective: Boolean? = null
|
val selective: Boolean? = null
|
||||||
) : KeyboardMarkup
|
) : KeyboardMarkup
|
||||||
|
@ -4,7 +4,6 @@ import kotlinx.serialization.*
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ReplyKeyboardRemove(
|
data class ReplyKeyboardRemove(
|
||||||
@Optional
|
|
||||||
val selective: Boolean? = null
|
val selective: Boolean? = null
|
||||||
) : KeyboardMarkup {
|
) : KeyboardMarkup {
|
||||||
@SerialName("remove_keyboard")
|
@SerialName("remove_keyboard")
|
||||||
|
@ -10,17 +10,12 @@ data class AnimationFile(
|
|||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
override val width: Int,
|
override val width: Int,
|
||||||
override val height: Int,
|
override val height: Int,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null,
|
override val thumb: PhotoSize? = null,
|
||||||
@SerialName(fileNameField)
|
@SerialName(fileNameField)
|
||||||
@Optional
|
|
||||||
override val fileName: String? = null,
|
override val fileName: String? = null,
|
||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
@Optional
|
|
||||||
override val mimeType: String? = null,
|
override val mimeType: String? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, CustomNamedMediaFile, SizedMediaFile
|
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, CustomNamedMediaFile, SizedMediaFile
|
||||||
|
@ -9,18 +9,12 @@ import kotlinx.serialization.*
|
|||||||
data class AudioFile(
|
data class AudioFile(
|
||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Optional
|
|
||||||
override val performer: String? = null,
|
override val performer: String? = null,
|
||||||
@Optional
|
|
||||||
override val title: String? = null,
|
override val title: String? = null,
|
||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
@Optional
|
|
||||||
override val mimeType: String? = null,
|
override val mimeType: String? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null,
|
override val fileSize: Long? = null,
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null
|
override val thumb: PhotoSize? = null
|
||||||
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, TitledMediaFile, Performerable
|
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, TitledMediaFile, Performerable
|
||||||
|
@ -9,14 +9,10 @@ data class DocumentFile(
|
|||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null,
|
override val fileSize: Long? = null,
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null,
|
override val thumb: PhotoSize? = null,
|
||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
@Optional
|
|
||||||
override val mimeType: String? = null,
|
override val mimeType: String? = null,
|
||||||
@SerialName(fileNameField)
|
@SerialName(fileNameField)
|
||||||
@Optional
|
|
||||||
override val fileName: String? = null
|
override val fileName: String? = null
|
||||||
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, CustomNamedMediaFile
|
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, CustomNamedMediaFile
|
||||||
|
@ -9,6 +9,5 @@ data class File(
|
|||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
): TelegramMediaFile
|
): TelegramMediaFile
|
||||||
|
@ -11,7 +11,6 @@ data class PathedFile(
|
|||||||
@SerialName(filePathField)
|
@SerialName(filePathField)
|
||||||
val filePath: String,
|
val filePath: String,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
): TelegramMediaFile
|
): TelegramMediaFile
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ data class PhotoSize(
|
|||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null,
|
override val fileSize: Long? = null,
|
||||||
override val width: Int,
|
override val width: Int,
|
||||||
override val height: Int
|
override val height: Int
|
||||||
|
@ -15,18 +15,13 @@ data class Sticker(
|
|||||||
@SerialName(heightField)
|
@SerialName(heightField)
|
||||||
override val height: Int,
|
override val height: Int,
|
||||||
@SerialName(thumbField)
|
@SerialName(thumbField)
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null,
|
override val thumb: PhotoSize? = null,
|
||||||
@SerialName(emojiField)
|
@SerialName(emojiField)
|
||||||
@Optional
|
|
||||||
val emoji: String? = null,
|
val emoji: String? = null,
|
||||||
@SerialName(stickerSetNameField)
|
@SerialName(stickerSetNameField)
|
||||||
@Optional
|
|
||||||
val stickerSetName: String? = null,
|
val stickerSetName: String? = null,
|
||||||
@SerialName(maskPositionField)
|
@SerialName(maskPositionField)
|
||||||
@Optional
|
|
||||||
val maskPosition: MaskPosition? = null,
|
val maskPosition: MaskPosition? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
) : TelegramMediaFile, SizedMediaFile, ThumbedMediaFile
|
) : TelegramMediaFile, SizedMediaFile, ThumbedMediaFile
|
||||||
|
@ -9,9 +9,7 @@ data class TelegramFile(
|
|||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null,
|
override val fileSize: Long? = null,
|
||||||
@SerialName("file_path")
|
@SerialName("file_path")
|
||||||
@Optional
|
|
||||||
val filePath: String? = null
|
val filePath: String? = null
|
||||||
) : TelegramMediaFile
|
) : TelegramMediaFile
|
||||||
|
@ -10,14 +10,10 @@ data class VideoFile(
|
|||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
override val width: Int,
|
override val width: Int,
|
||||||
override val height: Int,
|
override val height: Int,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null,
|
override val thumb: PhotoSize? = null,
|
||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
@Optional
|
|
||||||
override val mimeType: String? = null,
|
override val mimeType: String? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile
|
) : TelegramMediaFile, MimedMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile
|
||||||
|
@ -10,12 +10,9 @@ data class VideoNoteFile(
|
|||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@SerialName("length")
|
@SerialName("length")
|
||||||
override val width: Int,
|
override val width: Int,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@Optional
|
|
||||||
override val thumb: PhotoSize? = null,
|
override val thumb: PhotoSize? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
) : TelegramMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile {
|
) : TelegramMediaFile, ThumbedMediaFile, PlayableMediaFile, SizedMediaFile {
|
||||||
override val height: Int
|
override val height: Int
|
||||||
|
@ -8,12 +8,9 @@ import kotlinx.serialization.*
|
|||||||
data class VoiceFile(
|
data class VoiceFile(
|
||||||
@SerialName(fileIdField)
|
@SerialName(fileIdField)
|
||||||
override val fileId: FileId,
|
override val fileId: FileId,
|
||||||
@Optional
|
|
||||||
override val duration: Long? = null,
|
override val duration: Long? = null,
|
||||||
@SerialName(mimeTypeField)
|
@SerialName(mimeTypeField)
|
||||||
@Optional
|
|
||||||
override val mimeType: String? = null,
|
override val mimeType: String? = null,
|
||||||
@SerialName(fileSizeField)
|
@SerialName(fileSizeField)
|
||||||
@Optional
|
|
||||||
override val fileSize: Long? = null
|
override val fileSize: Long? = null
|
||||||
) : TelegramMediaFile, MimedMediaFile, PlayableMediaFile
|
) : TelegramMediaFile, MimedMediaFile, PlayableMediaFile
|
||||||
|
@ -15,14 +15,11 @@ data class Game(
|
|||||||
@SerialName(photoField)
|
@SerialName(photoField)
|
||||||
val photo: Photo,
|
val photo: Photo,
|
||||||
@SerialName(textField)
|
@SerialName(textField)
|
||||||
@Optional
|
|
||||||
val text: String? = null,
|
val text: String? = null,
|
||||||
@Serializable(RawMessageEntitiesSerializer::class)
|
@Serializable(RawMessageEntitiesSerializer::class)
|
||||||
@SerialName(textEntitiesField)
|
@SerialName(textEntitiesField)
|
||||||
@Optional
|
|
||||||
private val textEntitiesRaw: RawMessageEntities? = null,
|
private val textEntitiesRaw: RawMessageEntities? = null,
|
||||||
@SerialName(animationField)
|
@SerialName(animationField)
|
||||||
@Optional
|
|
||||||
val animation: AnimationFile? = null
|
val animation: AnimationFile? = null
|
||||||
) {
|
) {
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -30,7 +30,6 @@ data class RawMessage(
|
|||||||
@SerialName(chatField)
|
@SerialName(chatField)
|
||||||
private val chat: RawChat,
|
private val chat: RawChat,
|
||||||
@SerialName(fromField)
|
@SerialName(fromField)
|
||||||
@Optional
|
|
||||||
private val from: User? = null,
|
private val from: User? = null,
|
||||||
@Optional private val forward_from: User? = null,
|
@Optional private val forward_from: User? = null,
|
||||||
@Optional private val forward_from_chat: RawChat? = null,
|
@Optional private val forward_from_chat: RawChat? = null,
|
||||||
|
@ -3,7 +3,6 @@ package com.github.insanusmokrassar.TelegramBotAPI.types.payments
|
|||||||
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
||||||
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.abstracts.*
|
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.abstracts.*
|
||||||
import kotlinx.serialization.*
|
import kotlinx.serialization.*
|
||||||
import kotlinx.serialization.Optional
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
// TODO:: separate to normal classes hierarchy
|
// TODO:: separate to normal classes hierarchy
|
||||||
@ -21,9 +20,7 @@ data class PreCheckoutQuery(
|
|||||||
@SerialName(invoicePayloadField)
|
@SerialName(invoicePayloadField)
|
||||||
val invoicePayload: InvoicePayload,
|
val invoicePayload: InvoicePayload,
|
||||||
@SerialName(shippingOptionIdField)
|
@SerialName(shippingOptionIdField)
|
||||||
@Optional
|
|
||||||
val shippingOptionId: ShippingOptionIdentifier? = null,
|
val shippingOptionId: ShippingOptionIdentifier? = null,
|
||||||
@SerialName(orderInfoField)
|
@SerialName(orderInfoField)
|
||||||
@Optional
|
|
||||||
val orderInfo: OrderInfo? = null
|
val orderInfo: OrderInfo? = null
|
||||||
) : Currencied, Amounted
|
) : Currencied, Amounted
|
||||||
|
@ -14,9 +14,7 @@ data class ShippingAddress(
|
|||||||
@SerialName(secondStreetLineField)
|
@SerialName(secondStreetLineField)
|
||||||
val secondStreetLine: String,
|
val secondStreetLine: String,
|
||||||
@SerialName(stateField)
|
@SerialName(stateField)
|
||||||
@Optional
|
|
||||||
val state: String = "",
|
val state: String = "",
|
||||||
@SerialName(postCodeField)
|
@SerialName(postCodeField)
|
||||||
@Optional
|
|
||||||
val postCode: String = ""
|
val postCode: String = ""
|
||||||
)
|
)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user