From 661b846a7463e839601308961b599921bd701073 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 5 Apr 2026 17:38:50 +0600 Subject: [PATCH] add support of canManageBots --- .../src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt | 2 ++ .../commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 6aa0efa911..249eeed906 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -677,6 +677,8 @@ const val uniqueGiftColorsField = "unique_gift_colors" const val paidStarCountField = "paid_star_count" const val isPaidPostField = "is_paid_post" +const val canManageBotsField = "can_manage_bots" + const val levelField = "level" const val currentLevelRatingField = "current_level_rating" const val nextLevelRatingField = "next_level_rating" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt index bbe2b53f9b..b103350fdb 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt @@ -517,6 +517,8 @@ data class ExtendedBot( override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), @SerialName(uniqueGiftColorsField) override val uniqueGiftColors: UniqueGiftColors? = null, + @SerialName(canManageBotsField) + val canManageBots: Boolean = false, ) : Bot(), ExtendedChat { @SerialName(isBotField) private val isBot = true