1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-03-03 09:22:22 +00:00

make nanostarAmount in StarTransaction nullable

This commit is contained in:
2026-02-25 22:10:19 +06:00
parent 65cd359002
commit ac511d0aed
3 changed files with 25 additions and 22 deletions

View File

@@ -2,6 +2,9 @@
## 31.0.1 ## 31.0.1
* `Core`:
* In `StarTransaction` property `nanostarAmount` become nullable
## 31.0.0 ## 31.0.0
**THIS UPDATE CONTAINS ADDING SUPPORT OF [Telegram Bots API 9.3](https://core.telegram.org/bots/api-changelog#december-31-2025)** **THIS UPDATE CONTAINS ADDING SUPPORT OF [Telegram Bots API 9.3](https://core.telegram.org/bots/api-changelog#december-31-2025)**

View File

@@ -30721,7 +30721,7 @@ public abstract interface class dev/inmo/tgbotapi/types/payments/stars/StarTrans
public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Companion;
public abstract fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public abstract fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public abstract fun getId-xINTbLo ()Ljava/lang/String; public abstract fun getId-xINTbLo ()Ljava/lang/String;
public abstract fun getNanostarAmount ()I public abstract fun getNanostarAmount ()Ljava/lang/Integer;
public abstract fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public abstract fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public abstract fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public abstract fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public abstract fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public abstract fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
@@ -30742,20 +30742,20 @@ public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Defaul
public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming : dev/inmo/tgbotapi/types/payments/stars/StarTransaction { public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming : dev/inmo/tgbotapi/types/payments/stars/StarTransaction {
public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming$Companion;
public synthetic fun <init> (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun <init> (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1-xINTbLo ()Ljava/lang/String; public final fun component1-xINTbLo ()Ljava/lang/String;
public final fun component2 ()J public final fun component2 ()J
public final fun component3 ()I public final fun component3 ()Ljava/lang/Integer;
public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate; public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate;
public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public final fun copy-UiV6LeQ (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming; public final fun copy-UiV6LeQ (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming;
public static synthetic fun copy-UiV6LeQ$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming;Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming; public static synthetic fun copy-UiV6LeQ$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming;Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incoming;
public fun equals (Ljava/lang/Object;)Z public fun equals (Ljava/lang/Object;)Z
public fun getAdaptedMajorityTotalAmount ()D public fun getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public fun getId-xINTbLo ()Ljava/lang/String; public fun getId-xINTbLo ()Ljava/lang/String;
public fun getNanostarAmount ()I public fun getNanostarAmount ()Ljava/lang/Integer;
public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
@@ -30769,20 +30769,20 @@ public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Incomi
public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing : dev/inmo/tgbotapi/types/payments/stars/StarTransaction { public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing : dev/inmo/tgbotapi/types/payments/stars/StarTransaction {
public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing$Companion;
public synthetic fun <init> (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun <init> (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1-xINTbLo ()Ljava/lang/String; public final fun component1-xINTbLo ()Ljava/lang/String;
public final fun component2 ()J public final fun component2 ()J
public final fun component3 ()I public final fun component3 ()Ljava/lang/Integer;
public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate; public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate;
public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public final fun copy-UiV6LeQ (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing; public final fun copy-UiV6LeQ (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing;
public static synthetic fun copy-UiV6LeQ$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing;Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing; public static synthetic fun copy-UiV6LeQ$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing;Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoing;
public fun equals (Ljava/lang/Object;)Z public fun equals (Ljava/lang/Object;)Z
public fun getAdaptedMajorityTotalAmount ()D public fun getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public fun getId-xINTbLo ()Ljava/lang/String; public fun getId-xINTbLo ()Ljava/lang/String;
public fun getNanostarAmount ()I public fun getNanostarAmount ()Ljava/lang/Integer;
public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getSource ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
@@ -30796,22 +30796,22 @@ public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Outgoi
public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown : dev/inmo/tgbotapi/types/payments/stars/StarTransaction { public final class dev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown : dev/inmo/tgbotapi/types/payments/stars/StarTransaction {
public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown$Companion; public static final field Companion Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown$Companion;
public synthetic fun <init> (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun <init> (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1-xINTbLo ()Ljava/lang/String; public final fun component1-xINTbLo ()Ljava/lang/String;
public final fun component2 ()J public final fun component2 ()J
public final fun component3 ()I public final fun component3 ()Ljava/lang/Integer;
public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate; public final fun component4 ()Ldev/inmo/tgbotapi/types/TelegramDate;
public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public final fun component5 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public final fun component6 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public final fun component6 ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public final fun component7 ()Lkotlinx/serialization/json/JsonElement; public final fun component7 ()Lkotlinx/serialization/json/JsonElement;
public final fun copy-58pZDbM (Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown; public final fun copy-58pZDbM (Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown;
public static synthetic fun copy-58pZDbM$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown;Ljava/lang/String;JILdev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown; public static synthetic fun copy-58pZDbM$default (Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown;Ljava/lang/String;JLjava/lang/Integer;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlinx/serialization/json/JsonElement;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/payments/stars/StarTransaction$Unknown;
public fun equals (Ljava/lang/Object;)Z public fun equals (Ljava/lang/Object;)Z
public fun getAdaptedMajorityTotalAmount ()D public fun getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate; public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
public fun getId-xINTbLo ()Ljava/lang/String; public fun getId-xINTbLo ()Ljava/lang/String;
public fun getNanostarAmount ()I public fun getNanostarAmount ()Ljava/lang/Integer;
public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getPartner ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;
public final fun getRaw ()Lkotlinx/serialization/json/JsonElement; public final fun getRaw ()Lkotlinx/serialization/json/JsonElement;
public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner; public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;

View File

@@ -19,7 +19,7 @@ import kotlinx.serialization.json.JsonElement
@ClassCastsIncluded @ClassCastsIncluded
sealed interface StarTransaction : Amounted { sealed interface StarTransaction : Amounted {
val id: StarTransactionId val id: StarTransactionId
val nanostarAmount: Int val nanostarAmount: Int?
val date: TelegramDate val date: TelegramDate
val partner: TransactionPartner val partner: TransactionPartner
val source: TransactionPartner? val source: TransactionPartner?
@@ -32,7 +32,7 @@ sealed interface StarTransaction : Amounted {
@SerialName(amountField) @SerialName(amountField)
override val amount: Long, override val amount: Long,
@SerialName(nanostarAmountField) @SerialName(nanostarAmountField)
override val nanostarAmount: Int, override val nanostarAmount: Int?,
@SerialName(dateField) @SerialName(dateField)
override val date: TelegramDate, override val date: TelegramDate,
@SerialName(sourceField) @SerialName(sourceField)
@@ -52,7 +52,7 @@ sealed interface StarTransaction : Amounted {
@SerialName(amountField) @SerialName(amountField)
override val amount: Long, override val amount: Long,
@SerialName(nanostarAmountField) @SerialName(nanostarAmountField)
override val nanostarAmount: Int, override val nanostarAmount: Int?,
@SerialName(dateField) @SerialName(dateField)
override val date: TelegramDate, override val date: TelegramDate,
@SerialName(receiverField) @SerialName(receiverField)
@@ -71,7 +71,7 @@ sealed interface StarTransaction : Amounted {
override val id: StarTransactionId, override val id: StarTransactionId,
override val amount: Long, override val amount: Long,
@SerialName(nanostarAmountField) @SerialName(nanostarAmountField)
override val nanostarAmount: Int, override val nanostarAmount: Int?,
override val date: TelegramDate, override val date: TelegramDate,
override val source: TransactionPartner?, override val source: TransactionPartner?,
override val receiver: TransactionPartner?, override val receiver: TransactionPartner?,
@@ -86,9 +86,9 @@ sealed interface StarTransaction : Amounted {
private data class Surrogate( private data class Surrogate(
val id: StarTransactionId, val id: StarTransactionId,
val amount: Long, val amount: Long,
@SerialName(nanostarAmountField)
val nanostarAmount: Int,
val date: TelegramDate, val date: TelegramDate,
@SerialName(nanostarAmountField)
val nanostarAmount: Int? = null,
val source: TransactionPartner? = null, val source: TransactionPartner? = null,
val receiver: TransactionPartner? = null, val receiver: TransactionPartner? = null,
) )