1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-04-07 10:32:44 +00:00

add support of canManageBots

This commit is contained in:
2026-04-05 17:38:50 +06:00
parent ce44203941
commit 661b846a74
2 changed files with 4 additions and 0 deletions

View File

@@ -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"

View File

@@ -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