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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user