1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-06-04 14:47:20 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
renovate[bot]
532e2913b9 Update ksp monorepo to v2.3.6 2026-02-27 13:49:00 +00:00
df695ceadb Merge pull request #1030 from InsanusMokrassar/31.0.1
31.0.1
2026-02-26 00:54:42 +06:00
ac511d0aed make nanostarAmount in StarTransaction nullable 2026-02-25 22:10:19 +06:00
65cd359002 start 31.0.1 2026-02-25 22:01:55 +06:00
8d7005be80 try to update nmcp version 2026-02-24 18:24:39 +06:00
a20368ee51 Merge pull request #1024 from InsanusMokrassar/31.0.0
31.0.0
2026-02-24 15:07:59 +06:00
5 changed files with 30 additions and 25 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

@@ -10,7 +10,7 @@ korlibs = "5.4.0"
uuid = "0.8.4"
ktor = "3.3.2"
ksp = "2.3.2"
ksp = "2.3.6"
kotlin-poet = "2.2.0"
microutils = "0.26.9"
@@ -22,7 +22,7 @@ github-release-plugin = "2.5.2"
dokka = "2.0.0"
validator = "0.18.1"
nmcp = "1.2.0"
nmcp = "1.4.4"
[libraries]

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,
)