1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

several improvements

This commit is contained in:
InsanusMokrassar 2024-09-08 15:17:14 +06:00
parent b3dfef9a38
commit f0bd4c3719
3 changed files with 8 additions and 21 deletions

View File

@ -18026,7 +18026,6 @@ public abstract interface class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicR
public static final field Companion Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Companion;
public abstract fun getAdditionalChats ()I public abstract fun getAdditionalChats ()I
public abstract fun getCount ()I public abstract fun getCount ()I
public abstract fun getPublicWinners ()Z
public abstract fun getRefunded ()Z public abstract fun getRefunded ()Z
public abstract fun getWinners ()Ljava/util/List; public abstract fun getWinners ()Ljava/util/List;
} }
@ -18057,7 +18056,6 @@ public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Refund
public fun getOnlyNewMembers ()Z public fun getOnlyNewMembers ()Z
public fun getPremiumMonths ()Ljava/lang/Integer; public fun getPremiumMonths ()Ljava/lang/Integer;
public fun getPrizeStarCount ()Ljava/lang/Integer; public fun getPrizeStarCount ()Ljava/lang/Integer;
public fun getPublicWinners ()Z
public fun getRefunded ()Z public fun getRefunded ()Z
public fun getSelectionDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public fun getSelectionDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public fun getUnclaimedCount ()I public fun getUnclaimedCount ()I
@ -18083,12 +18081,11 @@ public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Refund
public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners : dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults { public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners : dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults {
public static final field Companion Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners$Companion;
public synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat;
public final fun component10 ()Ljava/lang/String; public final fun component10 ()Ljava/lang/Integer;
public final fun component11 ()Ljava/lang/Integer; public final fun component11 ()Ljava/lang/Integer;
public final fun component12 ()Ljava/lang/Integer;
public final fun component2-APLFQys ()J public final fun component2-APLFQys ()J
public final fun component3 ()Ldev/inmo/tgbotapi/types/TelegramDate; public final fun component3 ()Ldev/inmo/tgbotapi/types/TelegramDate;
public final fun component4 ()I public final fun component4 ()I
@ -18096,9 +18093,9 @@ public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winner
public final fun component6 ()I public final fun component6 ()I
public final fun component7 ()I public final fun component7 ()I
public final fun component8 ()Z public final fun component8 ()Z
public final fun component9 ()Z public final fun component9 ()Ljava/lang/String;
public final fun copy-1D2Tc4A (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners; public final fun copy-lWeNI4M (Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners;
public static synthetic fun copy-1D2Tc4A$default (Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners;Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners; public static synthetic fun copy-lWeNI4M$default (Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners;Ldev/inmo/tgbotapi/types/chat/PreviewChat;JLdev/inmo/tgbotapi/types/TelegramDate;ILjava/util/List;IIZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winners;
public fun equals (Ljava/lang/Object;)Z public fun equals (Ljava/lang/Object;)Z
public fun getAdditionalChats ()I public fun getAdditionalChats ()I
public fun getAdditionalPrizeDescription ()Ljava/lang/String; public fun getAdditionalPrizeDescription ()Ljava/lang/String;
@ -18108,7 +18105,6 @@ public final class dev/inmo/tgbotapi/types/giveaway/GiveawayPublicResults$Winner
public fun getOnlyNewMembers ()Z public fun getOnlyNewMembers ()Z
public fun getPremiumMonths ()Ljava/lang/Integer; public fun getPremiumMonths ()Ljava/lang/Integer;
public fun getPrizeStarCount ()Ljava/lang/Integer; public fun getPrizeStarCount ()Ljava/lang/Integer;
public fun getPublicWinners ()Z
public fun getRefunded ()Z public fun getRefunded ()Z
public fun getSelectionDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public fun getSelectionDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public fun getUnclaimedCount ()I public fun getUnclaimedCount ()I

View File

@ -17,7 +17,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
val count: Int val count: Int
val winners: List<PreviewUser> val winners: List<PreviewUser>
val additionalChats: Int val additionalChats: Int
val publicWinners: Boolean
val refunded: Boolean val refunded: Boolean
@Serializable @Serializable
@ -43,8 +42,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
override val unclaimedCount: Int = 0 override val unclaimedCount: Int = 0
@SerialName(onlyNewMembersField) @SerialName(onlyNewMembersField)
override val onlyNewMembers: Boolean = false override val onlyNewMembers: Boolean = false
@SerialName(hasPublicWinnersField)
override val publicWinners: Boolean = false
@SerialName(prizeDescriptionField) @SerialName(prizeDescriptionField)
override val additionalPrizeDescription: String? = null override val additionalPrizeDescription: String? = null
@SerialName(premiumSubscriptionMonthCountField) @SerialName(premiumSubscriptionMonthCountField)
@ -73,8 +70,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
override val unclaimedCount: Int = 0, override val unclaimedCount: Int = 0,
@SerialName(onlyNewMembersField) @SerialName(onlyNewMembersField)
override val onlyNewMembers: Boolean = false, override val onlyNewMembers: Boolean = false,
@SerialName(hasPublicWinnersField)
override val publicWinners: Boolean = false,
@SerialName(prizeDescriptionField) @SerialName(prizeDescriptionField)
override val additionalPrizeDescription: String? = null, override val additionalPrizeDescription: String? = null,
@SerialName(premiumSubscriptionMonthCountField) @SerialName(premiumSubscriptionMonthCountField)
@ -106,8 +101,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
val unclaimedCount: Int = 0, val unclaimedCount: Int = 0,
@SerialName(onlyNewMembersField) @SerialName(onlyNewMembersField)
val onlyNewMembers: Boolean = false, val onlyNewMembers: Boolean = false,
@SerialName(hasPublicWinnersField)
val publicWinners: Boolean = false,
@SerialName(wasRefundedField) @SerialName(wasRefundedField)
val refunded: Boolean = false, val refunded: Boolean = false,
@SerialName(prizeDescriptionField) @SerialName(prizeDescriptionField)
@ -140,7 +133,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
additionalChats = surrogate.additionalChats, additionalChats = surrogate.additionalChats,
unclaimedCount = surrogate.unclaimedCount, unclaimedCount = surrogate.unclaimedCount,
onlyNewMembers = surrogate.onlyNewMembers, onlyNewMembers = surrogate.onlyNewMembers,
publicWinners = surrogate.publicWinners,
additionalPrizeDescription = surrogate.additionalPrizeDescription, additionalPrizeDescription = surrogate.additionalPrizeDescription,
premiumMonths = surrogate.premiumMonths, premiumMonths = surrogate.premiumMonths,
prizeStarCount = surrogate.starsCount, prizeStarCount = surrogate.starsCount,
@ -158,7 +150,6 @@ sealed interface GiveawayPublicResults : GiveawayInfo, GiveawayResults, WithPrev
additionalChats = value.additionalChats, additionalChats = value.additionalChats,
unclaimedCount = value.unclaimedCount, unclaimedCount = value.unclaimedCount,
onlyNewMembers = value.onlyNewMembers, onlyNewMembers = value.onlyNewMembers,
publicWinners = value.publicWinners,
additionalPrizeDescription = value.additionalPrizeDescription, additionalPrizeDescription = value.additionalPrizeDescription,
premiumMonths = value.premiumMonths, premiumMonths = value.premiumMonths,
starsCount = value.prizeStarCount, starsCount = value.prizeStarCount,

View File

@ -102,8 +102,6 @@ internal data class RawMessage(
private val dice: Dice? = null, private val dice: Dice? = null,
private val successful_payment: SuccessfulPayment? = null, private val successful_payment: SuccessfulPayment? = null,
private val refunded_payment: RefundedPayment? = null, private val refunded_payment: RefundedPayment? = null,
private val giveaway: Giveaway? = null,
private val giveaway_winners: GiveawayPublicResults? = null,
private val sender_boost_count: Int? = null, private val sender_boost_count: Int? = null,
private val users_shared: UsersShared? = null, private val users_shared: UsersShared? = null,
@ -159,6 +157,8 @@ internal data class RawMessage(
// Giveaways // Giveaways
private val giveaway_created: GiveawayCreated? = null, private val giveaway_created: GiveawayCreated? = null,
private val giveaway: Giveaway? = null,
private val giveaway_winners: GiveawayPublicResults? = null,
private val giveaway_completed: GiveawayPrivateResults? = null, private val giveaway_completed: GiveawayPrivateResults? = null,
) { ) {
private val checkedFrom = from ?.takeIf { !it.isFakeTelegramUser() } private val checkedFrom = from ?.takeIf { !it.isFakeTelegramUser() }