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

Merge pull request #1030 from InsanusMokrassar/31.0.1

31.0.1
This commit is contained in:
2026-02-26 00:54:42 +06:00
committed by GitHub
4 changed files with 28 additions and 23 deletions

View File

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

View File

@@ -6,4 +6,4 @@ kotlin.incremental=true
kotlin.incremental.js=true
library_group=dev.inmo
library_version=31.0.0
library_version=31.0.1

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 abstract fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
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 getReceiver ()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 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 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 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 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 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;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 getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
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 getReceiver ()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 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 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 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 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 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;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 getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
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 getReceiver ()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 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 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 component5 ()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 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 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 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;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 getAdaptedMajorityTotalAmount ()D
public fun getAmount ()J
public fun getDate ()Ldev/inmo/tgbotapi/types/TelegramDate;
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 final fun getRaw ()Lkotlinx/serialization/json/JsonElement;
public fun getReceiver ()Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;

View File

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